Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1600
CausesValidation = False does not prevent grid from showing a validation error.
posted

I am trying to prevent the WinGrid from showing an error message when the user enters invalid data into a cell and then clicks the Cancel button on my form.  To accomplish this, I tried setting the CausesValidation property of the button to False.  This did not work because the actual validation of that cell does not occur within the Validate event of the grid control.

 Since I can't use the CausesValidation property to prevent the error message from being displayed, is there any other way in which I can allow the grid to show the error message when the user clicks in another location, but don't show the error message when the user clicks the Cancel button on my form?