Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Viewing all articles
Browse latest Browse all 956

Error in obj.staffs

$
0
0

        int staffID;
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
                   if (e.RowIndex != -1 && e.ColumnIndex != -1)
            {
                DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
                staffID = Convert.ToInt32(row.Cells["userIDGV"].Value.ToString());
                nameTxt.Text = row.Cells["nameGV"].Value.ToString();
                usernameTxt.Text = row.Cells["usernameGV"].Value.ToString();
                passTxt.Text = row.Cells["passwordGV"].Value.ToString();
                cpassTxt.Text = row.Cells["passwordGv"].Value.ToString();
                p1Txt.Text = row.Cells["phone1GV"].Value.ToString();
                p2Txt.Text = row.Cells["Phone2Gv"].Value.ToString();
                roleDD.SelectedItem = row.Cells["RoleGV"].Value.ToString();
                statusDD.SelectedItem = row.Cells["Status"].Value.ToString();

              
                var im = (from x in obj.staffs where x.st_id == staffID select x.st_image).First();
                if (im == null)


Viewing all articles
Browse latest Browse all 956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>