Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
ValueConverter: target type same as source type
posted

I have bound my XamGrid to an observable list objects.

One of the rows is bound to a property of type integer (Int32).

This is an account number, which I want to display formatted: so raw value is 987654321, display value  wanted: "98.76.54.321".
I am using an existing converter (deriving from IValueConverter) which functions OK in other applications with other grids.

However, when I connect this converter to the Field, it doesn't display anything.
The problem is that the XamGrid expects a return value (indicated by TargetType) of type Int32 from my converter.
I have set de DataType of the Field from the default object to Int32 or String, but does not have the effect I expect.
How can I get the expected behaviour and why is the XamGrid different in this respect from the standaard WPF grid or the other commercial WPF grids?