A GridDataControl is bound to an ObservableDataCollection. No columns are defined in xaml.
Data looks like:
Book ABC DEF
Price 1.2345 1.4567
Change .03 .04
So the price is a decimal which should be formatted one way and the 'change' is a percent which should be formatted a different way. A column would contain multiple types.
What would be an easy way to do this?
I would like to make them custom types MyDecimal and MyPercent. Then create 2 IValueConverters.
If common is my namespace, converters are declared in xaml:
What is the xaml to the converters to the types in a GridDataControl? A full xaml file is attached.
sample_5e31e2a4.zip