The requested page is not available for the requested platform. You are viewing the content for Default platform.

How to: Create Total Summaries

This example shows how to calculate the average budget and display it within the ASPxGridView's footer:

protected void Page_Load(object sender, EventArgs e) {
     ASPxSummaryItem totalSummary = new ASPxSummaryItem();
     totalSummary.FieldName = "Budget";
     totalSummary.ShowInColumn = "Budget";
     totalSummary.SummaryType = SummaryItemType.Average;
     ASPxGridView1.TotalSummary.Add(totalSummary);
}