Add a total row to a Telerik ASP.NET RadGrid

Here’s a clean, reliable way to add a total row (a footer aggregate) to a Telerik ASP.NET AJAX RadGrid. This is the pattern I’ve used in many production grids — simple, predictable, and it works whether you’re binding to a DataTable, a List(Of T), or manual data.

In addition to the code below, this will add a total to GROUP rows

<MasterTableView DataKeyNames="slprsnid, PayRecordError" ShowGroupFooter="true"  >

Markup to add a total row to the grid

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" ShowFooter="True">
    <MasterTableView ShowFooter="True">
        <Columns>
 
            <!-- Example numeric column -->
            <telerik:GridBoundColumn
                DataField="Amount"
                HeaderText="Amount"
                DataFormatString="{0:C}"
                Aggregate="Sum"
                FooterAggregateFormatString="Total: {0:C}"
                FooterStyle-Font-Bold="true">
            </telerik:GridBoundColumn>
 
            <!-- Another numeric column -->
            <telerik:GridBoundColumn
                DataField="Quantity"
                HeaderText="Qty"
                Aggregate="Sum"
                FooterAggregateFormatString="Total: {0}"
                FooterStyle-Font-Bold="true">
            </telerik:GridBoundColumn>
 
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences