"TableCellCollection rowCell = gridRow.Cells;
//loop thru all the cells in the row
foreach (TableCell itemCell in rowCell)
{
//loop thru all the controls in the cell
foreach (Control ctl in itemCell.Controls)
{
//check if the control is a CheckBox
if (ctl is CheckBox)
{
//cast the ctl object to a CheckBox
CheckBox chk = (CheckBox)ctl;
//check if the ID of the control is CheckBox1
if (chk.ID = "CheckBox1")
{
//if the CheckBox is checked
if (chk.Checked)
{
//notify that the CheckBox was checked
Response.Write(chk.Text.ToString() + " is checked!<br>");
}
}
}
}
}"