Back to Devexpress

DataGridView.FindRowHandle(String, Object) Method

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-dot-findrowhandle-x28-system-dot-string-system-dot-object-x29.md

latest1.4 KB
Original Source

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

csharp
public int FindRowHandle(
    string fieldName,
    object value
)

Parameters

NameTypeDescription
fieldNameString

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

| | value | System.Object |

The search value.

|

Returns

TypeDescription
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

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace