I have a Gridview in which I have made a column of checkboxes named 'Status'. When the user clicks a button I want to see if a checkbox in particular row was checked by him or not. Code I have written is:
for (int i = 0; i <= Grid.Rows.Count; i++)
{
if (if checkbox is checked)
d = m.Mark(Grid.Rows[i].Cells[1].Text, Date.Text, 'P');
else
d = m.Mark(Grid.Rows[i].Cells[1].Text, Date.Text, 'A');
}
What code should I write in (if checkbox is checked) so that I can get the desired result?