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?
You can achieve this with your existing property itself by using different template displaying and editing.
Below
CellTemplateandCellEditingTemplatecan used for this.You can use
IValueConverterto convert the updated string values todoubleas per your desired calculation.Note: You can add the necessary validation for the user values inside your
ValueConverterclass.