How to I fix my code to validate that at least one item is checked in the gridview:
foreach (GridViewRow row in gvName.Rows)
{
CheckBox cbSelectAll = (CheckBox)row.FindControl("ckbox");
if (!cbSelectAll.Checked) <-- if not one box has been check flag message.
{
isValid = false;
lblErrorMsg.Text = "Please check at least one item.";
Go to the complete details ...