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.v20.1.Core.dll

Declaration

public int FindRow(
    object value
)
Public Function FindRow(
    value As Object
) As Integer

Parameters

Name Type Description
value Object

A Object that is a row to be searched.

Returns

Type Description
Int32

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

Remarks

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