I want to fire an event when any of the datagridviewcheckbox is checked. I tried the foreach but it only trigger when all the datagridviewcheck is checked. I want to fire an event if any of the datagridviewcheckboxcell is checked.
foreach (DataGridViewRow row in dgvLocal.Rows)
{
if ((Convert.ToBoolean(row.Cells[0].Value) == true))
{
//
}
}
breakinside theifso it stops checking when one is found. If you have that, then there must be something else.