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

RepositoryItemTreeListLookUpEdit.GetRowByKeyValue(Object) Method

Returns a data source row containing the specified value in the RepositoryItemLookUpEditBase.ValueMember field.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraTreeList.v19.1.dll


public object GetRowByKeyValue(
    object keyValue


Name Type Description
keyValue Object

The value of the RepositoryItemLookUpEditBase.ValueMember field for the row to be located.


Type Description

An object representing the data source record containing the specified value. null (Nothing in Visual Basic) if no record with the specified value in the RepositoryItemLookUpEditBase.ValueMember field was found.


The editor’s edit value is obtained from the data source field specified by the inherited RepositoryItemLookUpEditBase.ValueMember property. The GetRowByKeyValue method searches for the specified keyValue within this field in the bound data source, and returns an object representing the first found record.

See Also