DataControlBase.FindRow(Object) Method

Searches for the target data row within the grid or treelist control and returns the handle of the corresponding row.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v21.1.Core.dll


public int FindRow(
    object value


Name Type Description
value Object

A Object that is a row to be searched.


Type Description

An integer value that is the handle of the corresponding row.


To find a row handle by the underlying data object, pass this object to the FindRow method as a parameter. If the value is not found, the FindRow method returns DataControlBase.InvalidRowHandle.

If the column contains more than one search value, the FindRow method returns the handle of the first corresponding row.

To learn more, see Obtaining Row Handles.

See Also