Vb net handles validating
I am having a problem with the cellvalidating event constantly firing when the datagrid is refreshed (since the trigger that fires the event is the originally selected cell losing focus).Let’s assume when we click our save button that we wish to validate the controls and display an icon if there is a problem. Get String(1) end if End Using End using For more information, please refer to the following articles.Unfortunately, our website is temporarily unavailable to European countries that enforce the General Data Protection Regulation (GDPR).Users should not be using that button and you should not encourage it.A properly-designed dialogue has OK and Cancel buttons and the user should be clicking one of them to close it.
In my form there is a "Validating" event on a textbox. Is there a way to not execute the "Validating" event when the user clicks on the "Cancel" button?You can then set the Causes Validation property of the Cancel Button to False and clicking it will not raise any Validating events. Cancel to False in Form Closing event to allow form to close.