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
Declaration
Parameters
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. |
Returns
Type | Description |
---|---|
Int32 | An integer value that is the row’s zero-based visual index in the dropdown list. -1 if such a row is not found. |
Remarks
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.