This code will help you:-
int total = 0;
protected void girdview_OnRowDataBound(object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
total += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "Amount_column"));
}
if(e.Row.RowType == DataControlRowType.Footer)
{
Label lblAmount = (Label)e.Row.FindControl("amountLabe");
lblAmount.Text = total.ToString();
}
}
Good luck.