Back to Devexpress

GridControl.FindRowByValue(GridColumn, Object) Method

xamarin-devexpress-dot-mobile-dot-datagrid-dot-gridcontrol-dot-findrowbyvalue-x28-devexpress-dot-mobile-dot-datagrid-dot-gridcolumn-system-dot-object-x29.md

latest2.4 KB
Original Source

GridControl.FindRowByValue(GridColumn, Object) Method

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

Namespace : DevExpress.Mobile.DataGrid

Assembly : DevExpress.Mobile.Grid.v18.2.dll

Declaration

csharp
public int FindRowByValue(
    GridColumn column,
    object value
)
vb
Public Function FindRowByValue(
    column As GridColumn,
    value As Object
) As Integer

Parameters

NameTypeDescription
columnGridColumn

The column to be searched.

| | value | Object |

An object that is the search value.

|

Returns

TypeDescription
Int32

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

|

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

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 GridControl.InvalidRowHandle.

See Also

Rows Overview

Identify and Access Rows

Columns

Identify and Access Columns

GridControl Class

GridControl Members

DevExpress.Mobile.DataGrid Namespace