Skip to main content
A newer version of this page is available. .

LookUpEditBase.GetDisplayValue(Int32) Method

Returns the specified item’s display value.

Namespace: DevExpress.Xpf.Editors

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

Declaration

public object GetDisplayValue(
    int index
)

Parameters

Name Type Description
index Int32

An integer value that specifies the item’s index.

Returns

Type Description
Object

An object that specifies the item’s display 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