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

TreeListView.GetNodeByKeyValue(Object) Method

Returns the node with the specified key value.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public TreeListNode GetNodeByKeyValue(
    object keyValue
)

#Parameters

Name Type Description
keyValue Object

An object that specifies the key value.

#Returns

Type Description
TreeListNode

A TreeListNode object that is the node with the specified key value.

#Remarks

Use the GetNodeByKeyValue method when the gird is bound to a data source. The data source field containing unique values that identify nodes is specified by the TreeListView.KeyFieldName property.

To learn more, see Obtaining Nodes.

See Also