if (sdr[6].ToString().Equals("1")) { //dataGridView1.Rows[i].Cells["Column8"].Selected = true; } else { //dataGridView1.Rows[i].Cells["Column8"].Selected = false; }
for (int i = 0; i <= GridView1.Rows.Count - 1; i++) { GridViewRow row = GridView1.Rows[i]; CheckBox Ckbox = (CheckBox)row.FindControl("CheckBox2"); if (Ckbox.Checked) { //your code for selected checkbox } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)