Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LookUpEditBase.SelectedItems Property

Gets the collection of selected items. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public ObservableCollection<object> SelectedItems { get; }

#Property Value

Type Description
ObservableCollection<Object>

The collection of selected items.

#Remarks

Multiple items can be selected if the editor represents a checked combo box. Otherwise, to obtain the selected item, use the LookUpEditBase.SelectedItem property. Its index is returned by the LookUpEditBase.SelectedIndex property.

Note

The editor’s EditValue property returns a List<T><Object,> of selected items when multiple items are selected. This List<T><Object,> is recreated each time the selection is changed. Changing the collection of items returned by the EditValue property does not affect the actual set of selected items.

See Also