Skip to main content

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.v24.2.dll

Declaration

public virtual string GetDisplayTextByKeyValue(
    object keyValue
)

Parameters

Name Type Description
keyValue Object

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

Returns

Type Description
String

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

Remarks

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