Back to Devexpress

TreeListNodeBase.RowHandle Property

corelibraries-devexpress-dot-data-dot-treelist-dot-treelistnodebase-e0245350.md

latest3.0 KB
Original Source

TreeListNodeBase.RowHandle Property

Gets the row handle that identifies the node.

Namespace : DevExpress.Data.TreeList

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public int RowHandle { get; }
vb
Public ReadOnly Property RowHandle As Integer

Property Value

TypeDescription
Int32

An integer value that specifies the row handle.

|

Remarks

A node can be identified by its key value (in bound mode), content and row handle. Visible nodes (that are not hidden within collapsed nodes) can also be identified by visible indices.

The following images illustrate the difference between row handles and visible indices.

  • All nodes are expanded.

  • One node is collapsed.

To learn more, see Obtaining Nodes.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowHandle 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#L97

csharp
if(node != null) {
    int rowHandle = node.RowHandle;
    bool isExpanded = (bool)obj.GetType().GetProperty(args.PropertyName).GetValue(obj, null);

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

vb
If node IsNot Nothing Then
    Dim rowHandle As Integer = node.RowHandle
    Dim isExpanded As Boolean = CBool(obj.GetType().GetProperty(args.PropertyName).GetValue(obj, Nothing))

See Also

Id

TreeListNodeBase Class

TreeListNodeBase Members

DevExpress.Data.TreeList Namespace