Skip to main content

RepositoryItemLookUpEdit.GetDataSourceRowIndex(LookUpColumnInfo, Object) Method

Returns the visual index of the row in the dropdown that contains the specified value in the specified column.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual int GetDataSourceRowIndex(
    LookUpColumnInfo column,
    object value


Name Type Description
column LookUpColumnInfo

A LookUpColumnInfo object that is the column whose values will be compared with the specified value to locate the required row.

value Object

A value contained in the required row in the specified column.


Type Description

An integer value that is the row’s zero-based visual index in the dropdown list. -1 if such a row is not found.


The index returned can be used to obtain the row’s specific value via the RepositoryItemLookUpEdit.GetDataSourceValue method.

To get the index of a specific row in the underlying data source, use the RepositoryItemLookUpEdit.GetListSourceIndex method.

See Also