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

RepositoryItemTreeListLookUpEdit.GetDisplayTextByKeyValue(Object) Method

Returns the text representation of the DisplayMember field value of the row that contains the specified ValueMember field value.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraTreeList.v19.1.dll


public virtual string GetDisplayTextByKeyValue(
    object keyValue


Name Type Description
keyValue Object

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


Type Description

The text representation of the DisplayMember field value for the specified row.


The GetDisplayTextByKeyValue method searches for the record which contains the specified key value (the value of the RepositoryItemLookUpEditBase.ValueMember field) and returns the display value it contains. The display value is retrieved from the RepositoryItemLookUpEditBase.DisplayMember field of the located record. This method returns the display value of the first record found.

See Also