Bug test

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.

1 Reply

AD Administrator Syncfusion Team 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";
	}
}

Loader.
Up arrow icon