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
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
key |
Object | The value of the Value |
#Returns
Type | Description |
---|---|
String | The text representation of the Display |
#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.