wpf-devexpress-dot-xpf-dot-grid-dot-treelistnode-fc289016.md
Gets the parent node.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public TreeListNode ParentNode { get; }
Public ReadOnly Property ParentNode As TreeListNode
| Type | Description |
|---|---|
| TreeListNode |
A TreeListNode object that is the parent node. null ( Nothing in Visual Basic) if the current node is at the root level.
|
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 ParentNode 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.
while(isExpanded && node.ParentNode != null) {
node.ParentNode.IsExpanded = isExpanded;
Do While isExpanded AndAlso node.ParentNode IsNot Nothing
node.ParentNode.IsExpanded = isExpanded
See Also