Skip to main content
Tab

ASPxGridView.GroupSummary Property

Provides access to group summary items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

[DefaultValue(null)]
public ASPxSummaryItemCollection GroupSummary { get; }

Property Value

Type Default Description
ASPxSummaryItemCollection

null

An ASPxSummaryItemCollection object that represents the collection of group summary items.

Remarks

Group summaries are displayed within group rows when data grouping is applied. Summary items are represented by the ASPxSummaryItem objects and are stored within the GroupSummary collection. This collection provides methods and properties that allow you to add, remove and access summary items.

GroupSummary

Note

In server mode, summary cannot be calculated for unbound columns whose values calculated via events (see ASPxGridView.CustomUnboundColumnData). Only columns with unbound expressions (see GridViewDataColumn.UnboundExpression) support summary calculation.

Concept

Data Summaries

Example

  • Programmatically
ASPxSummaryItem groupSummary = new ASPxSummaryItem();
groupSummary.FieldName = "Budget";
groupSummary.SummaryType = SummaryItemType.Max;
ASPxGridView1.GroupSummary.Add(groupSummary);
  • Declaratively
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ...>
    ...
    <Columns>
    ...
    </Columns>
    <GroupSummary>
        <dx:ASPxSummaryItem FieldName="UnitPrice" ShowInGroupFooterColumn="UnitPrice" SummaryType="Count" />
    </GroupSummary>
</dx:ASPxGridView>
See Also