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
1360
Autogenerate and column headers
posted

When binding to a list of custom objects the grid seems to take all public properties and build a column for each one.

Is there a way to use an attribute on the custom object properties to customize the default header text for each property? Likewise is there a way to stop the grid generating columns for specific properties of the custom object via an attribute?

The type of attributes that I am thinking of would be System.ComponentModel.DataAnnotations or similar.

  • 40030
    Verified Answer
    Offline posted

    Hi, 

    We currently offer support for the AutoGenerateFiled for the DisplayAtrribute of the DataAnnotations. 

    We do plan to add support for the other Attributes, however, they aren't currently implemented. 

    [Display(AutoGenerateField=false)]

    -SteveZ

  • 1360
    posted

    by the way, I dont want to define the columns manually in the XAML I want to still use the autogenerate option.