I have a grid looking at the object having 3 nullable integer properties. Of these three, two properties should be treated as exclusive: if one has a value, the other can't have a value. In my current UI I get 3 edit boxes with checkboxes for nullable value.
Of course, since I haven't done anything custom so far, when I uncheck not-nullable checkbox of one property, and thus make it have no value, the other property doesn't get checked automatically and thus acquire a default value.
I am not sure how to get this behavior, particularly because, for various reasons, I can't change the original object so that I don't have two exclusive nullable integer properties and I can not add INotifyPropertyChanged.
As for the title of this question, it should have been reversed. I want to update target from the source. I think I could solve the problem described without a custom editor, if, when I get Change notification for a property, I could read and change the state of grid editor UI elements. Like, if I could read if nullable checkbox is set for a particular property and if not, then set it.
[Modified 10 years ago]