GridControl.FindRowByValueAsync(String, Object) Method

Searches for the value in the column and returns the handle of the corresponding row asynchronously. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public Task<int> FindRowByValueAsync(
    string fieldName,
    object value
)
Public Function FindRowByValueAsync(
    fieldName As String,
    value As Object
) As Task(Of Integer)

Parameters

Name Type Description
fieldName String

A String value that specifies the field name of the column to be searched.

value Object

An object that is the search value.

Returns

Type Description
Task<Int32>

A Task<TResult> object which Result property is the handle of the corresponding row.

Remarks

If the value is not found, the FindRowByValueAsync property returns DataControlBase.InvalidRowHandle.

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

To learn more, see Obtaining Row Handles.

See Also