Skip to main content

DataGridView.FindRowByValue(String, Object) Method

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

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

public int FindRowByValue(
    string fieldName,
    object value
)

Parameters

Name Type Description
fieldName String

The field name of the column to be searched.

value Object

The search value.

Returns

Type Description
Int32

The row handle.

Remarks

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

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

See Also