Sorting/Grouping UI

The CollectionView class allows you to sort and group data by multiple fields. This application shows how you can build an Excel-style UI for managing the sorting and grouping fields in a CollectionView.

Use the buttons below to edit the SortDescriptions and GroupDescriptions associated with the application's data source. The buttons use different dialogs which acts as views on controllers that provide editing services for the sortDescriptions and groupDescriptions properties of a CollectionView object.

Edit sort definitions using a ComboBox-based dialog: Or using a FlexGrid-based dialog:

Edit group definitions using a ComboBox-based dialog: Or using a FlexGrid-based dialog:

See the effect of the sorting and grouping on the grid below: