Obtain Summary Values

ASPxVerticalGrid supports total summaries. This topic provides information on how to obtain summary values in code.

ASPxVerticalGrid stores its total summary items within the ASPxVerticalGrid.TotalSummary collection. To obtain the required summary item's value, use the ASPxVerticalGrid.GetTotalSummaryValue method.


int siValue = Convert.ToInt32(ASPxVerticalGrid1.GetTotalSummaryValue(
         ASPxVerticalGrid1.TotalSummary["UnitPrice", DevExpress.Data.SummaryItemType.Max]));

To obtain the total summary item's display text, use the ASPxVerticalGridSummaryItem.GetTotalSummaryDisplayText method.