GroupSummaryPosition Enum

Lists values that specify the group summary's position.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

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="@SalesData"
            ShowGroupPanel="true">
    <Columns>
        <DxDataGridSpinEditColumn Field=@nameof(SaleInfo.OrderId)
                                  Width="120px" />
        <DxDataGridColumn Field=@nameof(SaleInfo.Region)
                          GroupIndex="0"
                          Width="240px" />
        <DxDataGridColumn Field=@nameof(SaleInfo.Country)
                          GroupIndex="1" />
        <DxDataGridDateEditColumn Field="@nameof(SaleInfo.Date)"
                                  DisplayFormat="D" />
        <DxDataGridColumn Field=@nameof(SaleInfo.City)/>
        <DxDataGridSpinEditColumn Field="@nameof(SaleInfo.Amount)"
                                  DisplayFormat="c"
                                  Width="120px" />
    </Columns>
    <GroupSummary>
        <DxDataGridSummaryItem SummaryType=SummaryItemType.Count
                               GroupSummaryPosition="GroupSummaryPosition.GroupRow" />
        <DxDataGridSummaryItem Field=@nameof(SaleInfo.Amount)
                               SummaryType=SummaryItemType.Sum
                               GroupSummaryPosition="GroupSummaryPosition.GroupFooter"
                               DisplayFormat="Total: {0:c}" />
        <DxDataGridSummaryItem Field=@nameof(SaleInfo.Date)
                               SummaryType=SummaryItemType.Min
                               DisplayFormat="First: {0:D}"
                               GroupSummaryPosition="GroupSummaryPosition.GroupFooter" />
    </GroupSummary>
</DxDataGrid>

Data Grid Group Summary Position

Run Demo: Data Grid - Group Summary

See Also