Skip to main content
A newer version of this page is available. .

DataControlBase.FindRowByValue(ColumnBase, Object) Method

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.Core.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public int FindRowByValue(
    ColumnBase column,
    object value
)

Parameters

Name Type Description
column ColumnBase

The column to be searched.

value Object

An object that is the search value.

Returns

Type Description
Int32

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

Remarks

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

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

To learn more, see Obtaining Row Handles.

See Also