ASPxGridView.GroupSummary Property
Provides access to group summary items.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(null)]
public ASPxSummaryItemCollection GroupSummary { get; }
#Property Value
Type | Default | Description |
---|---|---|
ASPx |
null | An ASPx |
#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.
Note
In server mode, summary cannot be calculated for unbound columns whose values calculated via events (see ASPx
#Concept
#Example
In code:
ASPxSummaryItem groupSummary = new ASPxSummaryItem();
groupSummary.FieldName = "Budget";
groupSummary.SummaryType = SummaryItemType.Max;
ASPxGridView1.GroupSummary.Add(groupSummary);
In markup:
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ...>
<!-- ... -->
<GroupSummary>
<dx:ASPxSummaryItem FieldName="UnitPrice" ShowInGroupFooterColumn="UnitPrice"
SummaryType="Count" />
</GroupSummary>
</dx:ASPxGridView>
#Online Example
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupSummary property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.