Use this
int checkedCount = 0;
foreach (GridViewRow row in gvData.Rows)
{
bool result = ((CheckBox)row.FindControl("CheckBox1")).Checked;
if (result)
{
return true;
}
else
{
return false;
}
}
Gaurav Dudeja http://www.gdinfotechindia.com
Dont be afraid of changing your life to better !