PropertyGroupDescriptor
The PropertyGroupDescriptor
is used to group the data in a DataGrid by a property from the class that defines your objects.
Adding a PropertyGroupDescriptor
The PropertyGroupDescriptor
exposes a PropertyName
property that specifies the property by which the data will be grouped. It also exposes a SortOrder
property, which allows for controlling the sorting order. The following examples demonstrate how to set up the DataGrid and add a PropertySortDescriptor
.