I have the 2 check box columns in the Datagridview. both of two columns are unbound.
I Want to write condition when i click on column 2. ( if column1=false than alert msg(".....") and set check box column 2 to Uncheck)
Here is my code :
In this event the column 2 doesn't set back to Uncheck.so please help me to solve this problem. what event should i use?
I Want to write condition when i click on column 2. ( if column1=false than alert msg(".....") and set check box column 2 to Uncheck)
Here is my code :
Private Sub DTGapprovallist_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DTGapprovallist.CellContentClick
If e.ColumnIndex = 1 Then
If DTGapprovallist.CurrentRow.Cells("col1").EditedFormattedValue.Equals(False) Then
DTGapprovallist.CurrentRow.Cells("Col2").Value = False
MsgBox("..............................", MsgBoxStyle.Critical)
End If
End If
End Sub
In this event the column 2 doesn't set back to Uncheck.so please help me to solve this problem. what event should i use?