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

ListBoxEditSettings.Items Property

Provides access to the collection of items when the ListBoxEdit is not bound to a data source.

Namespace: DevExpress.Xpf.Editors.Settings

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

Declaration

public ListItemCollection Items { get; }

Property Value

Type Description
DevExpress.Xpf.Editors.ListItemCollection

The collection of items.

Remarks

Use the Items property to add, remove and access individual items using indexed notation.

To display items from a data source, assign the data source to the ListBoxEditSettings.ItemsSource property and specify the ListBoxEditSettings.DisplayMember and ListBoxEditSettings.ValueMember properties.

Note

If the editor is used within a container control (e.g. DXGrid or DXBars) for in-place editing, its items contained within the ListBoxEditSettings.Items or ListBoxEditSettings.ItemsSource collection should not be visual elements (e.g. ListBoxEditItem or any UIElement descendant).

See Also