We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How can I intercept grid''s error message display?

I am working with a bound grid with AllowAddNew = true. When the user inserts a new row and then moves off the row, an error messagebox will be displayed if any of the NOT NULLable fields have not been provided. How can I catch this error and display my own error messagebox? In general, I want to handle the error messagebox that occurs when adding a new row to the datasource generates an exception.

1 Reply

AD Administrator Syncfusion Team August 3, 2005 09:11 PM UTC

You can handle the grid.ValidateFailed event. There, set grid.CurrentCell.ErrorMessage to be what you want to display.

Loader.
Live Chat Icon For mobile
Up arrow icon