BootstrapComboBoxProperties.Fields Property

Provides access to a ComboBox’s field collection.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v21.1.dll


public BootstrapListBoxFieldCollection Fields { get; }

Property Value

Type Description

A BootstrapListBoxFieldCollection object which represents a collection of all the fields within a ComboBox.


This property stores all the fields present in the ComboBox control. It allows you to add and delete fields using the appropriate methods.

Individual fields can be accessed using indexed notation or the bound field name as parameters. If the bound field name is used as an indexer and there are several fields with the same name, the first field found in the collection will be returned.

The Fields property synchronizes its value with the editor’s BootstrapComboBox.Fields property.

<dx:BootstrapComboBox ID="ComboBoxCustomFiltering" runat="server" OnCustomFiltering="ComboBoxCustomFiltering_CustomFiltering"
    DataSourceID="CustomersDataSource" ValueField="CustomerID" ValueType="System.String" EnableCallbackMode="true">
        <dx:BootstrapListBoxField FieldName="CompanyName" />
        <dx:BootstrapListBoxField FieldName="Country" />
<ef:EntityDataSource runat="server" ID="CustomersDataSource" ContextTypeName="DevExpress.Web.Demos.NorthwindContextSL" EntitySetName="Customers">
See Also