You can display summaries (Sum, Average, Count, etc) for all or certain grid columns. Summaries are calculated for the entire data set taking into account applied filters (if any).
You can use the OnCustomRenderTotals event to format any of summaries according to your needs. Code sample.