Dear Friend,
Try this:-
1). First add a tag inside the gridview
<footertemplate>
<asp:label id="lblText" runat="server" xmlns:asp="#unknown"></asp:label>
</footertemplate>
2). Then in the gridrowdatabound event:-
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
Label lblText=(Label)e.row.Findcontrol("lblText");
lblText=[Your Value];
}
}
I hope this helps you out. Don't forget to mark this as your answer if it solves your purpose.
Thanks