The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
While changing the cell value which event will give me the old and new(changed) value of the cell. I need to do some comparision of old value and changed value .
ADAdministrator 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.