Back to Devexpress

LookUpEditBase.GetKeyValue(Int32) Method

wpf-devexpress-dot-xpf-dot-editors-dot-lookupeditbase-dot-getkeyvalue-x28-system-dot-int32-x29.md

latest1.9 KB
Original Source

LookUpEditBase.GetKeyValue(Int32) Method

Returns the specified item’s value.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public object GetKeyValue(
    int index
)
vb
Public Function GetKeyValue(
    index As Integer
) As Object

Parameters

NameTypeDescription
indexInt32

An integer value that specifies the item’s index.

|

Returns

TypeDescription
Object

An object that represents the item’s key 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