Formatting the TreeView Control

The TreeView control supports an abundance of properties that have an effect on how the TreeView is formatted.

Following are some of the more useful properties of a TreeView control, which modify its appearance (this is not a complete list):

CollapseImageToolTip Enables you to specify the title attribute for the collapse image.

CollapseImageUrl Enables you to specify a URL to an image for the collapse image.

ExpandDepth Enables you to specify the number of TreeNode levels to display initially.

ExpandImageToolTip Enables you to specify the title attribute for the expand image.

ExpandImageUrl Enables you to specify the URL to an image for the expand image.

ImageSet Enables you to specify a set of ...

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.