Skip to main content

How to: Create Total Summaries

The following example calculates the average price and displays it in the ASPxCardView’s summary panel:

ASPxCardView_Ex_TotalSummaryAverage

ASPxCardViewSummaryItem totalSummary = new ASPxCardViewSummaryItem();
totalSummary.FieldName = "UnitPrice";
totalSummary.SummaryType = DevExpress.Data.SummaryItemType.Average;
ASPxCardView1.TotalSummary.Add(totalSummary);