Cell validating c

If I then ckeck the second checbox (cell_2), it gives me the error message but does not return the second checkbox I checked to its unchecked state. Any help appreciated, Bob Once I'm in this process after the error text has been set, evn my close button, that has just a Me.close() in it does not work. Cancel = True End If End If End Sub Say I checked just one checkbox Cell_1 to start, the code allows the change to be made. I press the sacep key after the e,cancel and the message and I get the same problem. Cancel = True End If End If End Sub Say I checked just one checkbox Cell_1 to start, the code allows the change to be made. I press the sacep key after the e,cancel and the message and I get the same problem. Oh by the way, I had to add an if condition to do the testing in the cellvalidating only when either of these two checkbox fields gets edited. I owe you one, Bob "Bart Mermuys" In a datagridview (vs2005, VB.net) I have two columns that are checkboxes.

I need to check that only one of the two can be checked. Data Property Name = "Cell_1") Then other Check = CBool(Datagrid1("Cell_2", e. Private Sub Datagrid1_Cell Validating(By Val sender As Object, By Val e As System.

I owe you one, Bob "Bart Mermuys" In a datagridview (vs2005, VB.net) I have two columns that are checkboxes. Value" for both Check Box, only for the non-editing Check Box, for the the editing Check Box you need to use e. (Note, Formatted Value is either a Boolean (Three State=false) or a Check State (Three State=true). Data Grid View Cell Validating Eve nt Args) Handles Datagrid1.

If I then ckeck the second checbox (cell_2), it gives me the error message but does not return the second checkbox I checked to its unchecked state. Any help appreciated, Bob Bart, I adapted your code to my datagridview, works like a charm. Data Property Name = "Cell_2") Then other Check = CBool(Datagrid1("Cell_1", e.

Cancel = True End If End Sub HTH, Greetings End If End Sub Say I checked just one checkbox Cell_1 to start, the code allows the change to be made. I press the sacep key after the e,cancel and the message and I get the same problem.

I noticed that when I click on the checkbox to uncheck it after the e.cancel executed, that click does not change its value, I can both see in the UI that the value did not change before the cellvalidating event is called and in the cellvalidating event itself, when I set a breakpoint after the line that checks and verify the value of CBool(Datagrid1("Cell_2", e.

Last modified 19-Mar-2018 04:21