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

ComboBoxItemCollection Class

Represents a collection of items within a combo box editor.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v18.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ComboBoxItemCollection class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also