Skip to main content

GridControl.FindRow(Object) Method

Searches for the data row in the GridControl and returns the row’s handle.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public int FindRow(
    object value
)

Parameters

Name Type Description
value Object

The searched row.

Returns

Type Description
Int32

The row’s handle.

Remarks

In the GridControl, each row corresponds to an object from the data source. Pass this object to the FindRow method as a parameter to get a row handle that identifies the row. If the row does not exist, the FindRow method returns DataControlBase.InvalidRowHandle.

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

See Also