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.

customize validation message

Thread ID:

Created:

Updated:

Platform:

Replies:

33993 Aug 30,2005 01:38 PM Aug 30,2005 01:45 PM Windows Forms 1
loading
Tags: GridControl
Lan
Asked On August 30, 2005 01:38 PM

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

Administrator [Syncfusion]
Replied On August 30, 2005 01:45 PM

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 = "";
	}
}

CONFIRMATION

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.

;