private void SchedulerView_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) { // end of edition on each click on column of checkbox if (e.RowIndex == -1) { return; } switch (e.ColumnIndex) { case SCHEDULE_COL_ACTIVE: case SCHEDULE_COL_SUCCESS: case SCHEDULE_COL_ERROR: SchedulerView.EndEdit(); break; } }