Skip to main content

GroupSummaryPosition Enum

Lists values that specify the group summary’s position.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum GroupSummaryPosition

Members

Name Description
GroupRow

The summary is displayed in parentheses after the group header.

GroupFooter

The summary is displayed in the group footer under the target column.

Related API Members

The following properties accept/return GroupSummaryPosition values:

Remarks

Use the GroupSummaryPosition property to position group summaries in the Data Grid.

<DxDataGrid Data="@Data" ShowGroupPanel="true">
    <Columns>
        <DxDataGridColumn Field="@nameof(Invoice.Country)" GroupIndex="0" Width="200px" />
        <DxDataGridColumn Field="@nameof(Invoice.City)" GroupIndex="1" Width="200px" />
        <DxDataGridColumn Field="@nameof(Invoice.CustomerName)" />
        <DxDataGridSpinEditColumn Field="@nameof(Invoice.UnitPrice)" DisplayFormat="c" Width="120px" />
        <DxDataGridSpinEditColumn Field="@nameof(Invoice.Quantity)" Width="120px" />
    </Columns>
    <GroupSummary>
        <DxDataGridSummaryItem SummaryType="SummaryItemType.Count" Field="@nameof(Invoice.CustomerName)" DisplayFormat="Count is {0}" />
        <DxDataGridSummaryItem SummaryType="SummaryItemType.Avg" Field="@nameof(Invoice.Quantity)" DisplayFormat="Avg of Quantity is {0:0.##}" />
    </GroupSummary>
</DxDataGrid>

Data Grid Group Summary Position

Run Demo: Data Grid - Group Summary

See Also