This example calculates the average budget and displays 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);
}
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim totalSummary As ASPxSummaryItem = New ASPxSummaryItem()
totalSummary.FieldName = "Budget"
totalSummary.ShowInColumn = "Budget"
totalSummary.SummaryType = SummaryItemType.Average
ASPxGridView1.TotalSummary.Add(totalSummary)
End Sub