Hello,
How can i get the old value of the cell value on CellUpdating event?
Thank you for your post. I have been looking through it and I suggest you use the following code in your XamDataGrid’s EditModeEnding event in order to get the Cell’s new and old Values:
var oldValue = e.Cell.Value.ToString(); var newValue = e.Editor.Value.ToString();
Feel free to write me if you have further questions.
I wonder how to get the new value? It is not present in CellUpdatingEventArgs and as Alex said, e.Cell.Value returns the old value.
In the CellUpdating event, the value of the cell will still be the old one:
void xamDataGrid1_CellUpdating(object sender, Infragistics.Windows.DataPresenter.Events.CellUpdatingEventArgs e)
{
Debug.WriteLine(e.Cell.Value.ToString());
}