I have a WPF DataGrid. I would like to restrict the values a user may enter in a particular column, such as the following:
Column A values may only increase (new value > old value).
Column B values may only decrease (new value < old value).
If the user-entered value is invalid, I want to revert to the previous valid value.
I thought that I might be able to do this in a custom ValidationRule, but I don't see a way to access the previous value of the cell from the Validate() function.
I would appreciate any help!