Skip to main content

BootstrapListBoxFieldMultiColumnSettings.Caption Property

Specifies a column’s caption.

Namespace: DevExpress.Web.Bootstrap

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

NuGet Package: DevExpress.Web.Bootstrap

Declaration

[DefaultValue("")]
public string Caption { get; set; }

Property Value

Type Default Description
String String.Empty

A column’s caption.

Property Paths

You can access this nested property as listed below:

Object Type Path to Caption
BootstrapListBoxField

Remarks

When a control is in multi-column mode, it generates column headers based on corresponding field names from a bound data source. Use the field’s Caption property to override these header names.

Note

To customize other column settings, use the ToolTip and Width properties.

<dx:BootstrapListBox runat="server" DataSourceID="WWICountriesDataSource" EnableMultiColumn="true" ValueField="CountryID">
    <Fields>
        <dx:BootstrapListBoxField FieldName="IsoAlpha3Code">
            <SettingsMultiColumn Caption="Code" ToolTip="IsoAlpha3Code" Width="50px" />
        </dx:BootstrapListBoxField>
        <dx:BootstrapListBoxField FieldName="CountryName" />
        <dx:BootstrapListBoxField FieldName="Region" />
        <dx:BootstrapListBoxField FieldName="Subregion" />
    </Fields>
</dx:BootstrapListBox>

Bootstrap-ListBox-Multi-Column-Mode

Note

Online Demo: List Box - Multi Column

See Also