Use cellvalidating event datagridview orthodox christian dating review
Private Sub Datagrid1_Cell Validating(By Val sender As Object, By Val e As System. Private Sub Datagrid1_Cell Validating(By Val sender As Object, By Val e As System.
Please suggest on what event and how can i do such validation.
I need to check that only one of the two can be checked.
Its just that my UI does not respond correctly and I can't expect my users to get out of it that way. Bob "Bob" In a datagridview (vs2005, VB.net) I have two columns that are checkboxes.
Empty Exit Sub End If End If End Sub Actually, I hid the index 0 of my datagrid to prevent users from editing them. when I changed e.columnindex = 3 it worked for my column 3(Middle Name) . There is no error regarding about the program, I guess. Format Exception: Input string was not in correct format. What I am thinking now is that column 4 (Contact Number is declared as integer in mysql and the rest are varchar and it works on other columns except contact number). Is it possible if the input is like Dim value as integer?
I have tried the below code on datagrid View Cellvalidation event but its not working.