Vb net datagrid row validating accommodatingman com

27-Jul-2020 15:54

To get pass the cell validation need to enter the valid input to the cell. Current Cell Validated event triggered when the cell has finished validating with valid data.

In many places in my application, I have a Data Grid View which users can either enter data into or use as a method of navigation in a master/detail form view.

If I try to create a new record, it triggers the validation event, sees that the First Name field on the new record is empty, and throws up my message box.

Because there is no Cancel argument on the parameters for the Row Leave event, I can manage to catch the error and throw up a message, but I am unable to stop it from happening in the first place. Thanks, Matt Cor, Unfortunately, validating isn't my issue.