RepositoryItemSearchLookUpEdit.GetDisplayValueByKeyValue(Object) Method
Returns a value of the RepositoryItemLookUpEditBase.DisplayMember field of the row containing the specified RepositoryItemLookUpEditBase.ValueMember field value.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraGrid.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
keyValue | Object | The value of the RepositoryItemLookUpEditBase.ValueMember field for the row to locate. |
Returns
Type | Description |
---|---|
Object | The value of the RepositoryItemLookUpEditBase.DisplayMember field for the row located.null if no record with the specified value was found (System.DBNull.Value and the data source is a DataView object). |
Remarks
For general information on this method, see RepositoryItemGridLookUpEditBase.GetDisplayValueByKeyValue.
The GetDisplayValueByKeyValue method internally calls the RepositoryItemSearchLookUpEdit.GetDisplayValueByKeyValueEx method with a single parameter and returns its result. You may need to use the RepositoryItemSearchLookUpEdit.GetDisplayValueByKeyValueEx method instead of the GetDisplayValueByKeyValue method in Instant Feedback Mode (async server mode). See RepositoryItemSearchLookUpEdit.GetDisplayValueByKeyValueEx to learn more.