Hello, basically in the event handler "CellEditEnded", I would like to check if the old cell value is the same as the new cell value.
e.OldData == e.NewData returns true if I completely don't touch the cell values.
However, if I for example, add something to the cell, and delete it again BACK to the same value, then e.OldData == e.NewData return false.
(Example - original value: test --> typed 's' to become 'tests' --> backspace again to become 'test' which is back to the same value.
Setting breakpoints does show that e.OldData and e.NewData still have the same value, but somehow no longer equal.
e.OldData.ToString() and e.NewData.ToString() works, however, there will be exception if the column is binded to any non-string datatype (such as int / datetime etc). Is there any workaround for this? Thanks for your attention.
e.OldData == e.NewData returns true if I completely don't touch the cell values.
However, if I for example, add something to the cell, and delete it again BACK to the same value, then e.OldData == e.NewData return false.
(Example - original value: test --> typed 's' to become 'tests' --> backspace again to become 'test' which is back to the same value.
Setting breakpoints does show that e.OldData and e.NewData still have the same value, but somehow no longer equal.
e.OldData.ToString() and e.NewData.ToString() works, however, there will be exception if the column is binded to any non-string datatype (such as int / datetime etc). Is there any workaround for this? Thanks for your attention.