i would like to know if there is an event for every time someone checks an datagridview's checkbox.
My goal is to count how many rows are checked but i want the count to be refreshed every time the user checks, so that is why i'm am wondering if there is an event for each check the user you do. (Just like in the normal checkbox, checkBox_CheckedChanged)
Thank you
No there isn't (as far as I know), but you can use this simple workaround:
private void dgAreas_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
IsChecked = (bool)dgAreas[e.ColumnIndex, e.RowIndex].EditedFormattedValue
...
}
You have to listen to the CellContentClick event.