if you come here you were problably looking for a control like the following (download source code):
The control also allow to show Column Headers. For displaying them you just need to modify the Height=“O” in XAML code.
The example combines two ideas I found into two articles:
- Hierarchical Grid with WPF article by David Sackstein’s blog that explains how to make a hierarchical grid view controller. The idea is based ona Grid SharedSizeGroup property that allow you to share column width betwen different grid, and on HierarchicalDataTemplate for customize look and feel of each displayed tree view item.
- Organizing Heterogeneous Data on a WPF TreeView article by Philipp’s Sumi blog that explains how to display heterogeneous data in a tree view controller. The idea is based on the fact that ItemsSource property expect to be bound only on IEnumerable collection, does not matter if items of IEnumerable collection belong to different data types!
The below class diagram shows the classes used for data binding purposed and representing displayed data: