Back to Devexpress

GridControl.FindRowByValueAsync(ColumnBase, Object) Method

wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-dot-findrowbyvalueasync-x28-devexpress-dot-xpf-dot-grid-dot-columnbase-system-dot-object-x29.md

latest2.3 KB
Original Source

GridControl.FindRowByValueAsync(ColumnBase, Object) Method

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

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public Task<int> FindRowByValueAsync(
    ColumnBase column,
    object value
)
vb
Public Function FindRowByValueAsync(
    column As ColumnBase,
    value As Object
) As Task(Of Integer)

Parameters

NameTypeDescription
columnColumnBase

The column to be searched.

| | value | Object |

An object that is the search value.

|

Returns

TypeDescription
Task<Int32>

A Task<TResult> object which Result property is an integer value that 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

FindRowByValue

GridControl Class

GridControl Members

DevExpress.Xpf.Grid Namespace