protected override void OnCellContentClick(DataGridViewCellEventArgs e) { base.OnCellContentClick(e); try { if (typeof(DataGridViewCheckBoxCell).IsAssignableFrom(CurrentCell.GetType())) { CommitEdit(DataGridViewDataErrorContexts.Commit); } } catch (Exception ex) { Debug.Assert(false, ex.Message); } }