Skip to main content
All docs
V25.2
  • DxGridBandColumn.Columns Property

    Allows you to add child columns to a band.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.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 Order and Product bands:

    <DxGrid Data="Data"
            PageSize="5">
        <Columns>
            <DxGridDataColumn FieldName="SalesPerson" Caption="Salesperson" />
            <DxGridBandColumn Caption="Order">
                <Columns>
                    <DxGridDataColumn FieldName="CompanyName" />
                    <DxGridDataColumn FieldName="OrderDate" Caption="Date" Width="100px" />
                    <DxGridBandColumn Caption="Product">
                        <Columns>
                            <DxGridDataColumn FieldName="ProductName" Caption="Name" />
                            <DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c"
                                CaptionAlignment="GridTextAlignment.Right" Width="100px" />
                        </Columns>
                    </DxGridBandColumn>
                    <DxGridDataColumn FieldName="Quantity" Width="80px" />
                </Columns>
            </DxGridBandColumn>
        </Columns>
    </DxGrid>
    

    Column Collection

    Run Demo: Grid - Header Bands

    See Also