AD
Administrator
Syncfusion Team
September 6, 2006 10:32 AM UTC
Hi James,
Try this code snippet to resolve this.
private void TableControlCurrentCellValidating(object sender, GridTableControlCancelEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
if (cc.Renderer.ControlText == "Invalid" )
{
//To get/set the new cellvalue from cc.Renderer.ControlText:
//To get the old cellvalue from e.TableControl.Model[cc.RowIndex,cc.ColIndex ].Text
cc.Renderer.ControlText = e.TableControl.Model[cc.RowIndex,cc.ColIndex ].Text;
}
}
Let me know if this helps.
Best Regards,
Haneef