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
506
Add Field to Group By
posted

Hi,

how can I add a Field programmaticaly to a groupby before loading the data in a xamdatagrid?

Thks for the help.

Sacha

  • 69686
    Verified Answer
    posted

    Hello Sacha,

    Sorting/Grouping in procedural code is achieved by adding FieldSortDescription objects in the SortedFields collection of a specific field layout.

    xamDataGrid1.FieldLayouts[0].SortedFields.Add(new FieldSortDescription(...));