Hi,
I have 2 checkboxes in a datagridview
I added this code
Private Sub dgSO_CurrentCellDirtyStateChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgSO.CurrentCellDirtyStateChanged
If dgSO.IsCurrentCellDirty Then
dgSO.CommitEdit(DataGridViewDataErrorContexts.Commit)
End If
End Sub
and when user click the checkbox, i used this code
Private Sub dgSO_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgSO.CellContentClick
If dgSO.CurrentRow.Cells("Notching").Value = True Then
MsgBox("notching")
Exit Sub
ElseIf dgSO.CurrentRow.Cells("Arc-Edge").Value = True Then
MsgBox("Arc-Edge")
Exit Sub
End If
End Sub
the problem is when I click the arc edge and the notching is currently checked, it still shows the MsgBox("notching") since it detected that it is checked
how will i do the approach that only shows the message of the checkbox that is checked by user?
thanks