A newer version of this page is available. Switch to the current version.

ASPxTreeView.Nodes Property

Provides access to the root node child collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public TreeViewNodeCollection Nodes { get; }
Public ReadOnly Property Nodes As TreeViewNodeCollection

Property Value

Type Description

A TreeViewNodeCollection object that represents the collection of child nodes owned by the root node.


Use the Nodes property to access the root node child collection. The root node can be accessed via the ASPxTreeView.RootNode property.

For more information see the Node topic.


This example shows how to create a simple tree when the ASPxTreeView functions in unbound mode. New nodes are added to the ASPxTreeView via the TreeViewNodeCollection.Add method.

The image below shows the result:

TreeView - Creating nodes in code

public partial class _Default : System.Web.UI.Page {
    protected void Page_Load(object sender, EventArgs e) {
        if (!IsPostBack) {

    //Create treeview nodes. 
    void CreateTreeView() {
        string[] NodeNames = { "Inbox", "Outbox", "Sent Items", "Deleted Items", "Search Folder" };
        foreach (string Text in NodeNames) {