Creating Hierarchical Lists with the Tree View
The Tree View control is used to present hierarchical data. Perhaps the most commonly used Tree View control is found in Explorer, where you can use the Tree View to navigate the folders and drives on your computer. The Tree View is perfect for displaying hierarchical data, such as a departmental display of employees. In this section, I'll teach you the basics of the Tree View control so that you can use this powerful interface element in your applications.
The Tree View's items are contained in a Nodes collection, in much the same way that items in a List View are stored in an Items collection. To add items to the tree, you append them to the Nodes collection. As you can probably see by now, after ...
Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.