Hi. I have a DataGrid with a few columns that are editable. I'm catching the EditEnded event for such a cell, and can get the row and thereby also my business object that was modified.
However, if the user just clicks in one of the editable cells and then leaves the cell again without changing anything, the EditEnded event fires as well. So in order to avoid a roundtrip to my DB in these cases, I need to somehow detect whether the data in the edited cell has truly changed. Does anyone have a good tip on how to do this?
Of course, I could store the row/object being edited in the EditBegun event, and then do a (deep) comparison between the two objects in the EditEnded event, but it feels a bit "heavy". Maybe there is a way to get to the old/previous value of a cell being edited?