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.
Unfortunately, activation email could not send to your email. Please try again.

Catch row validation error message

Thread ID:





101176 Oct 4,2011 06:08 AM Oct 10,2011 01:59 AM Windows Forms 1
Tags: GridControl
Asked On October 4, 2011 06:08 AM

We have a grid datasource with several columns with AllowDBNull equal to false.

When creating a new record or updating the current one, grid throws an error message automatically

"SaveRecord: Column 'column name' does not Allow nulls."

We would like to customize this message. Please suggest us how to catch this.

We have also tried overriding "gridGroupingControl1_TableControlCurrentCellErrorMessage", but no help.

Appreciate response,


Asarudheen S [Syncfusion]
Replied On October 10, 2011 01:59 AM

Hi Ram,

Thank you for your interest in Syncfusion products products.

Please make us of “TableControlCurrentCellValidateString” event to achieve the behavior. You can able set the error message here if the current cell validation fails.

void gridGroupingControl1_TableControlCurrentCellValidateString(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellValidateStringEventArgs e)
if (e.Inner.Text ==string.Empty)
MessageBox.Show("CellValue cannot be empty");
e.Inner.Cancel = true;

Please let us know if I misunderstood your query.



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.

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.