Node Objects

Node Objects

Nodes, which represent records, are arranged in a hierarchical form in a Tree List control:

Internally, a node is represented by the TreeListNode class.
It provides access to the node's data, and allows a number of operations to be performed on the node.
Since the Tree List control represents data in a tree-like structure, nodes are stored as nested collections. The collection of root level nodes can be accessed via the TreeList.Nodes property. Each node in the collection has its own child nodes collection available via the TreeListNode.Nodes property. These child nodes have their own children, etc.

In bound mode, nodes are created automatically for every record in the data source. In unbound mode, you need to create nodes manually. Please refer to the Data Binding section to learn more.

Once you've obtained a reference to a specific node, you can access the underlying data via the indexer provided by the TreeListNode class. See Obtaining and Setting Cell Values, for more information, and other methods of accessing node data.