I have a datagridview with some checkboxes. I have this code:
Private Sub DataGridView2_CellMouseClick(sender As Object, e As DataGridViewCellMouseEventArgs) Handles DataGridView2.CellMouseClick
If e.ColumnIndex > 1 Then
DataGridView2(e.ColumnIndex, e.RowIndex).Value = True
End If
End Sub
But the checkbox is only "checked" when the focus exits. In other words, it is only "checked" when I click on another object in the project.