Back to Devexpress

LookUpEditBase.GetItemByKeyValue(Object) Method

wpf-devexpress-dot-xpf-dot-editors-dot-lookupeditbase-dot-getitembykeyvalue-x28-system-dot-object-x29.md

latest2.0 KB
Original Source

LookUpEditBase.GetItemByKeyValue(Object) Method

Returns an item with the specified key value.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public object GetItemByKeyValue(
    object keyValue
)
vb
Public Function GetItemByKeyValue(
    keyValue As Object
) As Object

Parameters

NameTypeDescription
keyValueObject

An object that represents the item’s key value.

|

Returns

TypeDescription
Object

An object that represents the item with the specified value.

|

Remarks

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

LookUpEditBase Class

LookUpEditBase Members

DevExpress.Xpf.Editors Namespace