Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListNodeCollection Class

A collection of nodes.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public class TreeListNodeCollection :
    TreeListNodeCollectionBase<TreeListNode>,
    ITreeListNodeCollection,
    IEnumerable

The following members return TreeListNodeCollection objects:

#Remarks

Nodes are stored as nested collections, because the TreeListView displays data in a tree. The collection of root level nodes can be accessed via the TreeListView.Nodes property. Each node has its own collection of child nodes available via the TreeListNode.Nodes property. These child nodes have their own children, etc.

Treelist Levels

In a bound mode, nodes are created automatically for every record in a data source. In an unbound mode, you need to create nodes manually.

To iterate through the nodes, do the following.

To learn more, see Nodes Overview.

#Inheritance

Object
Collection<TreeListNode>
DevExpress.Data.TreeList.TreeListNodeCollectionBase<TreeListNode>
TreeListNodeCollection
See Also