int k = 0; //Checkther whether atleast one check box is selected or not for (int i = 0; i <= GridViewExample.Rows.Count - 1; i++) { GridViewRow row = GridViewExample.Rows[i]; CheckBox Ckbox = (CheckBox)row.FindControl("cbkCheck"); //bool Ckbox = ((CheckBox)row.FindControl("cbkCheck")).Checked; if (Ckbox.Checked == true) //if (Ckbox) { k++; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)