Guest User

Untitled

a guest
Jun 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int count = gridView1.Rows.Count;
  2.  
  3. for(int i=0; i < count; i++)
  4. {
  5. GridViewRow row = gridView1.Rows[i];
  6. CheckBox cb = row.FindControl("CheckBoxID") as CheckBox;
  7. //Check if CheckBox is checked
  8. if(cb != null && cb.Checked)
  9. {
  10. // Logic here.
  11. }
  12. }
Add Comment
Please, Sign In to add comment