Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
[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:

Razor
<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