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

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

Declaration

public int GetIndexByKeyValue(
    object keyValue
)

Parameters

Name Type Description
keyValue Object

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

Returns

Type Description
Int32

An integer that specifies the index of the required row.

Remarks

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