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

ListBoxEdit.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 item selection is allowed if the ListBoxEdit.SelectionMode property is set to ‘Multiple’ or ‘Extended’. If the ListBoxEdit represents a radio list, multiple item selection is not allowed.

Use the SelectedItems property to obtain selected items. The ListBoxEdit.SelectedItem property returns the first element in this collection.

To select an item, preserving the existing selection, add this item to the SelectedItems collection. Removing an item from this collection, unselects the item.

Each time the selection changes, the BaseEdit.EditValueChanged event is fired.

See Also