This post is a continuation of “Distinct Data Providers with GroupingCollection.” The code and example is extremely similar - there are a couple minor changes to accommodate one addition: the use of HierarchicalCollectionView.
What’s new?
We saw in the previous post that a GroupingCollection works very well for creating a grouped data provider for an AdvancedDataGrid or even for use in part in a List or ComboBox control. But there’s a(nother/ better) way to populate that distinct List or ComboBox from the GroupingCollection. Use a HierarchicalCollectionView. It’s a more elegant solution and also lets you use your grouped data to populate a Tree or Menu control! Continue reading to try it out and view code.
Continue reading ‘GroupingCollection -> HierarchicalCollectionView’