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.
Syncfusion Feedback

Bug test

Thread ID:

Created:

Updated:

Platform:

Replies:

9184 Dec 9,2003 08:16 PM UTC Dec 9,2003 09:35 PM UTC Windows Forms 1
loading
Tags: GridControl
Steli Andrei
Asked On December 9, 2003 08:16 PM UTC

Hei guys, I am running one of the Essential Grid Samples: DataBound - GDBGcombos. If I select one of the Employees and delete the cell text and then Click (don''t tab out) on a different column, I get a weird message box with no title. Is there anyway of preventing that from happening, in other words capturing the error and displaying another message.

Administrator [Syncfusion]
Replied On December 9, 2003 09:35 PM UTC

You can handle CurrentCellValidating. Here is a snippet for the problem you sited.
private void grid_CurrentCellValidating(object sender, CancelEventArgs e)
{
	GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
	if(cc.ColIndex == 3 && cc.Renderer.ControlText.Length == 0)
	{
		e.Cancel = true;
		this.gridDataBoundGrid1.CurrentCell.ErrorMessage = "No empty values";
	}
}

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.

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

;