LookUpEditBase.GetItemByKeyValue(Object) Method

Returns an item with the specified key value.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v21.2.dll


public object GetItemByKeyValue(
    object keyValue


Name Type Description
keyValue Object

An object that represents the item’s key value.


Type Description

An object that represents the item with the specified value.


To bind the editor to a data source, use its LookUpEditBase.ItemsSource property. The LookUpEditBase.DisplayMember and LookUpEditBase.ValueMember properties specify the field names in a data source that supply display strings and item values, respectively.

To obtain the specified item’s display and key values, use the LookUpEditBase.GetDisplayValue and LookUpEditBase.GetKeyValue methods, respectively.

See Also