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.v20.1.dll
NuGet Package: DevExpress.Web
Declaration
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