AD
Administrator
Syncfusion Team
January 31, 2007 03:49 AM UTC
Hi,
The Renderer.ControlText returns the active cell’s display text and the grid[row, col].Text will return the text/value of a particular cell that is stored internally in the GridData object.
Please try this code snippet in any one of the events like CurrentCellValidating, CurrentCellChanged, or CurrentCellValidated.
GridCurrentCell cc =this.grid.CurrentCell;
string oldvalue=string.Empty;
string newvalue=string.Empty;
oldvalue = this.grid[cc.RowIndex, cc.ColIndex].Text;
newvalue = cc.Renderer.ControlText;
Console.WriteLine(("OldValue=" + oldvalue));
Console.WriteLine(("NewValue=" + newvalue));
Thanks for choosing and using Syncfusion Products.
Best Regards,
Jeba.