ASPxTreeList.FindNodeByFieldValue(String, Object) Method

Returns a node by its value in the specified column.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v19.2.dll

Declaration

public TreeListNode FindNodeByFieldValue(
    string fieldName,
    object value
)
Public Function FindNodeByFieldValue(
    fieldName As String,
    value As Object
) As TreeListNode

Parameters

Name Type Description
fieldName String

A String value that identifies the data column by the name of the data field.

value Object

An object that represents the search value.

Returns

Type Description
TreeListNode

A TreeListNode object that represents the node with the specified value in the specified column. null (Nothing in Visual Basic) if the node was not found.

Remarks

The FindNodeByFieldValue method returns the first node found that contains the specified value in the specified column. To obtain all nodes that contain the specified value in the specified column, use the ASPxTreeList.FindNodesByFieldValue method.

To learn more, see Nodes.

See Also