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

ComboBoxItemCollection Class

Represents a collection of items within a combo box editor.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[ListBindable(false)]
public class ComboBoxItemCollection :
    CollectionBase

The following members return ComboBoxItemCollection objects:

#Remarks

The collection of items in a ComboBoxEdit editor can be accessed via the repository item’s RepositoryItemComboBox.Items property. This property returns a ComboBoxItemCollection object whose members can be used to manage the collection. You can add, remove, access individual items and perform other common collection management tasks using the object’s properties and methods.

Individual items are objects which implies that they can be of any type. The control’s dropdown list displays textual representations of these objects. When selecting an item, the value representing the item is assigned to the editor’s BaseEdit.EditValue property.

Note: to ensure that the editor works correctly, items in the RepositoryItemComboBox.Items collection must be unique objects.

#Inheritance

See Also