Live Chat Icon For mobile
Live Chat Icon

How do I bind a flat table/list containing self-referencing data to a TreeView to render it in a hierarchical view?

Platform: WPF| Category: TreeView

The following article illustrates how you can first shape a flat table or list into a hierarchical list and then bind the resultant hierachy to the tree:

.NET – LINQ AsHierarchy() extension method

Share with