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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





32582 Aug 3,2005 08:12 PM UTC Aug 3,2005 09:11 PM UTC WinForms 1
Tags: GridControl
John Pritchard
Asked On August 3, 2005 08:12 PM UTC

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.

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon