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

How to: Create Total Summaries

This example shows how to calculate the average price and display 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);