Representing hierarchical data .net winforms

.net, c#, winforms

Solution

The built-in Windows Forms controls aren't great for this. What you're actually looking for is a tree-grid hybrid control (AKA multi-column tree view or TreeList).

DevExpress has an XtraTreeList, which is what I use (not free), and is probably the closest to what you're asking for. Telerik's GridView can also display grid data in a hierarchical fashion if you set up the groupings right.

If those prices are too steep, you might try FlexibleTreeView. Or if you desperately need something free, check out this CodeProject page: Advanced TreeView for .NET. It's going to be a lot more quirky and difficult to use than the commercial products, but it will do the job.

Note that I'm assuming that the data is uniform, that you basically want to display the same data for every node in the hierarchy. If the data is heterogeneous (completely different columns depending on the type of node or level), what you actually want to use is a hierarchical GridView. You can get those from the same publishers listed above. I'm not aware of any half-decent free version.

Problem

How i can represent the following hierarchical data ? What control should be used , if possible example will help. ``` -node -----node1 - -data--data --data -------------node111 -- data -- data -------------node112 -- data -- data -------------node113 -- data -- data -----node2 - -data--data --data -------------node1121 -- data -- data -----node3 - -data--data --data ``` and if possible i need to put in most of the cells several icons . I have found this tutorial Link , can someone support me more information ? Is that possible if yes how ? Thanks a lot .

Original source