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

customize validation message

Hello, When leave "not null" column in GGC, get a message like attached file. I want to customize the message box by adding a caption like "Data Validation Error". How can I do it? Thanks, VALIDATE_8808.zip

1 Reply

AD Administrator Syncfusion Team August 30, 2005 05:45 PM UTC

You can handle the TableControlCurrentCellMovedFailed event. In your handler, display whatever you want to see, and then set the old message empty so it does not show.
private void gridGroupingControl1_TableControlCurrentCellMoveFailed(object sender, GridTableControlCurrentCellMoveFailedEventArgs e)
{
	if(e.TableControl.CurrentCell.ErrorMessage.Length > 0)
	{
		MessageBox.Show("MyMessage");
		e.TableControl.CurrentCell.ErrorMessage = "";
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon