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
1100
How to programmatically group child tables?
posted

My XamDataGrid's is bound to a DataSet with multiple child tables. I want to group a child table by one of its fields and I attempted to do this programmatically as a proof of concept:

 

 

 

scannedGrid.FieldLayouts[2].SortedFields.Add(

 

 

new FieldSortDescription

{

FieldName =

"MaxBet",

IsGroupBy =

true

});

What happens is that the field DOES get sorted but it does not get grouped. How do I fix this?

Thanks.

  • 1100
    Verified Answer
    posted

    Please discard. I found the answer in the online documentation:

    Note: Even if you manually group fields using XAML or procedural code, you can only group the fields in the root-level field layout.