Skip to main content

DataGridView.FindRowHandle(String, Object) Method

Searches for the value in the column and returns the handle of the corresponding row.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

Declaration

public int FindRowHandle(
    string fieldName,
    object value
)

Parameters

Name Type Description
fieldName String

The field name of the column that contains the search value.

value Object

The search value.

Returns

Type Description
Int32

The row handle.

Remarks

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

If the value is not found, the FindRowHandle method returns DataGridView.InvalidRowHandle.

See Also