CellSave Event How to relate ColumnName to underlying TValue (object)

How do I relate the CellSaveArgs to my underlying class? The CellSaveArgs have the ColumnName OldValue and NewValue and the underlying TValue as RowData.
I noticed that the CellSaveArgs.RowData has the old value and not the new one. How do I get the new value into the correct property on my class?

An example:
 

@Code{
void CellSaved(CellSaveArgs args ){

     //lets say user has edited the person age from 30 to 40
     // args has Value = 40; //new age
   
How to get new age into person?
          


1 Reply 1 reply marked as answer

RN Rahul Narayanasamy Syncfusion Team June 29, 2020 12:53 PM UTC

Hi Paul, 

Greetings from Syncfusion. 

Query: I noticed that the CellSaveArgs.RowData has the old value and not the new one 

We have validated your query with the provided details. By default in CellSaved event, the original DataSource value for the record is present in Args.RowData. You can find the old value and the new changed value of the record by using PreviousValue and Value properties in Args. Find the below screenshot for your reference. 

 

If you have faced any problem regarding this, then please get back to us with those details.  

Regards, 
Rahul 


Marked as answer
Loader.
Up arrow icon