Back to Devexpress

TreeListNode.Nodes Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistnode.md

latest3.7 KB
Original Source

TreeListNode.Nodes Property

Gets the collection of child nodes.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public TreeListNodeCollection Nodes { get; }
vb
Public ReadOnly Property Nodes As TreeListNodeCollection

Property Value

TypeDescription
TreeListNodeCollection

A TreeListNodeCollection object that is the collection of child nodes.

|

Remarks

To iterate through the nodes, do the following.

To learn more, see Binding to Self-Referential Data Structure and Nodes.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Nodes property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-grid-sync-isnodeexpanded-with-view-model/CS/DevExpress.Example04/BindableExpandingBehavior.cs#L29

csharp
if(iterator.Current.HasChildren) {
    this.AttachItems(iterator.Current.Nodes);
}

wpf-grid-sync-isnodeexpanded-with-view-model/VB/DevExpress.Example04/BindableExpandingBehavior.vb#L34

vb
If iterator.Current.HasChildren Then
    Me.AttachItems(iterator.Current.Nodes)
End If

See Also

TreeListNode Class

TreeListNode Members

DevExpress.Xpf.Grid Namespace