Skip to main content
A newer version of this page is available. .
Tab

ASPxGroupSummarySortInfo.SummaryItem Property

Gets or sets the summary item which is used to calculate summary values for groups of rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(null)]
public ASPxSummaryItem SummaryItem { get; set; }

Property Value

Type Default Description
ASPxSummaryItem *null*

An ASPxSummaryItem object that represents the summary item used to calculate summary values for groups of rows.

Remarks

A group summary is calculated over all rows within a group and displayed in a group row. Group summaries are stored within the ASPxGridView.GroupSummary collection.

When setting the SummaryItem property, the summary item must be contained within the ASPxGridView.GroupSummary collection.


ASPxGroupSummarySortInfo sortInfo = new ASPxGroupSummarySortInfo();
sortInfo.SortOrder = DevExpress.Data.ColumnSortOrder.Descending;
sortInfo.SummaryItem = ASPxGridView1.GroupSummary["Total"];
sortInfo.GroupColumn = "Country";

grid.GroupSummarySortInfo.ClearAndAddRange(sortInfo);

To learn more, see Group Summary.

See Also