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.
Up arrow icon