WPF/DataGrid: Binding to different properties for displaying and editing
问题 I have an object that contains eg a string property like "10; 20; 30". I have also a get property that splits the string, converts each part to a double and sums them up. Thus I have "10; 20; 30" and 60.0 (as double). Now the question is. Is there a way to display the 60.0 (as double) in a TextColumn, but when going to edit mode editing the string "10; 20; 30"? So that I can bind to one property for displaying and to bind to another property for editing? 回答1: You can achieve this with your