In this articles describes how to visible footer columnsin gridview. Here I have use ShowFooter Property to visible footer columnseither true or false.
In client side(Default.aspx)
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" DataKeyNames="Id" OnRowCommand="GridView1_RowCommand" BorderWidth="1px" ShowFooter="true">
</asp:GridView>