I want to get the number of checked checkboxes. I tried to do it with the codes below, but I could not succeed..
int count = 0;
for (count = 0; count <= dataGridView1.RowCount; count++)
{
if (Convert.ToBoolean(dataGridView1.Rows[count].Cells[0].Value) == true)
{
count++;
label6.Text = (count.ToString());
}
}