Karl Shifflett is ready with the next sample in the WPF Sample Applications Series. This sample is the result of the question “how can I do multi-level grouping?” and provides a brief description of the problem, the solution and full source code.
WPF provides the CollectionViewSource for codeless sorting and grouping of data. The SortDescriptions and GroupDescriptions collections can be modified at runtime if desired. The SortDescription provides the ability to set the sort direction as I’ve done for the Sales.