Back to Devexpress

TreeListView.GetNodeByKeyValue(Object) Method

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-dot-getnodebykeyvalue-x28-system-dot-object-x29.md

latest1.7 KB
Original Source

TreeListView.GetNodeByKeyValue(Object) Method

Returns the node with the specified key value.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public TreeListNode GetNodeByKeyValue(
    object keyValue
)
vb
Public Function GetNodeByKeyValue(
    keyValue As Object
) As TreeListNode

Parameters

NameTypeDescription
keyValueObject

An object that specifies the key value.

|

Returns

TypeDescription
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

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace