Skip to main content

ComboBoxItemCollection Class

Represents a collection of items within a combo box editor.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.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.

Inheritance

See Also