A newer version of this page is available. Switch to the current version.

RepositoryItemTreeListLookUpEdit.GetIndexByKeyValue(Object) Method

Returns the index of the row that contains the specified value in the ValueMember field.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraTreeList.v19.1.dll


public int GetIndexByKeyValue(
    object keyValue


Name Type Description
keyValue Object

The value of the ValueMember field for the row to locate.


Type Description

An integer that specifies the index of the required row.


This method searches for the row that contains the specified key value (the value of the RepositoryItemLookUpEditBase.ValueMember field) and returns the index of the first row found.

See Also