I am new to XamDataGrid, so this may be an easy question.
One of the fields in my data-grid corresponds to a property which is a custom business object. I want to use this business object's "Description" property (of type String) as the text that gets displayed in the data-grid. So how do I do that? Please show the XAML.
As a temporary workaround, I overrode the business object's ToString() method, but this is not ideal.
I don't have time to pursue this further, so I'm going to stick with my original ToString() workaround.
Can you attach your example for further investigation?
Best Regards
Adding BindingMode="TwoWay" made no difference, unfortunately.
Hi, You are right about the side-effects. The BindingMode="TwoWay" should be added for the UnboundField-s.
<ig:UnboundField Name="FirstName" Label="First Name" BindingPath="FullName.FirstName" BindingMode="TwoWay" />
Hope this helps.
Thanks for the tip, although it didn't completely work. Initially it displays the correct value ("FirstName" and "LastName" in your example). But after switching to another screen where the value changes, then back to the XamDataGrid, the contents of ToString() are displayed instead of the updated value.
This looks to me like a Infragistics bug. I am using the 2010.1/CLR3.5 release. Has this since been fixed?