Upgraded to version 9.2.20092.1007 and ALL instances of the XamDataGrid in my application are ignoring the
System.ComponentModel.DisplayName attribute on class properties.
How do I correct this?
Thanks,
Klaus
Hi Klaus,
I'm not sure what the problem is. What type of data source are you using?
Can you post a sample that demonstrates the problem?
Thanks
Consider that DisplayName attributes we all being used by the XamDataGrid before I made the upgrade.
My collection is a simle List<T>
To duplicate, download Josh Smith Contax sample from here:
http://blogs.infragistics.com/blogs/josh_smith/archive/2008/09/15/introducing-a-new-xamdatagrid-behavior-displayadorningeditors.aspx
and modify the Contact class to use a DisplayName attribute. Remove all Field.Label definitions within his ContaxControl.XAML file and recompile. See that XamDataGrid dos not use DisplayName attribute.
It apears this is a regression that was introduced in 9.2. The DisplayName attribute on a property is not being picked up as the default Label.
I'll enter a bug and make sure it gets fixed in the next service release. In the meantime, a workaround would be to explicitly set the Label property of the Field.
Understandable. Please advise when fix is ready.