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
130
DataAnnotations in XamGrid
posted

Hi,

today I installed the version 2011.2 after using 2010.3 and I'd like to switch some grids from XamDataGrid to XamGrid because of the better performance.

The only issue I found was that there seems to be a bug (missing feature) in XamGrid and DataAnnotations are not handled when creating columns. Please tell me I missed some setting!

What I want is to ignore a field when setting one of the two annotations:

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DataAnnotations.Display(AutoGenerateField = false)]

I want to use AutoGenerateColumns="True".

Funny thing is: DataAnnotations seem to be supported by the Silverlight component, but not by WPF: http://help.infragistics.com/Help/NetAdvantage/Silverlight/2011.2/CLR4.0/html/xamGrid_Data_Annotations.html There is no such help file for the WPF component...

Is there some easy way to get around this limitation?

Parents
No Data
Reply Children
No Data