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(
{
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.
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.