DataGridView.CellContentClick is not firing if I mouse click a DataGridViewCheckBoxCell very fast. How can I solve this? I need to know when CheckBox's check state changes
I'm a little late to the party, but msdn has a very good answer to this problem here.
<!-- language: lang-vb -->'Ends Edit Mode So CellValueChanged Event Can Fire
Private Sub EndEditMode(sender As System.Object, e As EventArgs) _
Handles DataGridView1.CurrentCellDirtyStateChanged
'if current cell of grid is dirty, commits edit
If DataGridView1.IsCurrentCellDirty Then
DataGridView1.CommitEdit(DataGridViewDataErrorContexts.Commit)
End If
End Sub
I also wrote up a very detailed elaboration of the msdn fix and those found here on the post Firing The DataGridView CellValueChanged Event Immediately