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

Catch row validation error message

Thread ID:





101176 Oct 4,2011 10:08 AM UTC Oct 10,2011 05:59 AM UTC WinForms 1
Tags: GridControl
Asked On October 4, 2011 10:08 AM UTC

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 05:59 AM UTC

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.

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