Skip to main content
All docs
V24.2

DxGridBandColumn.Columns Property

Allows you to add child columns to a band.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public RenderFragment Columns { get; set; }

Property Value

Type Description
RenderFragment

Markup of child columns.

Remarks

The following code snippet declares child columns for Contact Person and Location bands:

<DxGrid Data="Data"
        PageSize="5">
    <Columns>
        <DxGridCommandColumn />
        <DxGridSelectionColumn Width="50" />
        <DxGridDataColumn FieldName="CompanyName" />
        <DxGridBandColumn Caption="Contact Person" TextAlignment="GridTextAlignment.Center" >
            <Columns>
                <DxGridDataColumn FieldName="ContactName" Caption="Name" />
                <DxGridDataColumn FieldName="ContactTitle" Caption="Title" MinWidth="100" />
                <DxGridDataColumn FieldName="Phone" />
            </Columns>
        </DxGridBandColumn>
        <DxGridBandColumn Caption="Location">
            <Columns>
                <DxGridDataColumn FieldName="Country" />
                <DxGridDataColumn FieldName="City" />
            </Columns>
        </DxGridBandColumn>
    </Columns>
</DxGrid>

Column Collection

Run Demo: Grid - Header Bands

See Also