Declaratively Adding Tree Nodes
A TreeView
control is made up of TreeNode
objects. You can build a TreeView
control by declaring TreeNode
objects in the TreeView
control’s Items collection.
For example, Listing 22.18 contains a TreeView
which renders a nested set of links to pages (see Figure 22.15).
Figure 22.15. Displaying a TreeView
control.
Listing 22.18. TreeViewDeclare.aspx
Some of the TreeNode
s in Listing 22.18 include a Text
property, ...
Get ASP.NET 4 Unleashed 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.