DxSummaryItemBase<TModel>.GroupSummaryPosition Property

Specifies the group summary item’s position.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.2.dll

Declaration

[Parameter]
[DefaultValue(GroupSummaryPosition.GroupRow)]
public GroupSummaryPosition GroupSummaryPosition { get; set; }

Property Value

Type Default Description
GroupSummaryPosition

GroupRow

A GroupSummaryPosition enumeration value.

Available values:

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.

Remarks

To calculate group summaries in the Data Grid, add DxDataGridSummaryItem objects to the GroupSummary collection. Use the GroupSummaryPosition property to position group summaries. The following values are available:

Note

This property is not in effect if the summary item is added to the TotalSummary collection.

<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