title: gridview with footer row total in the final page of the grid
body: <pre><code>protected void inderGrid_RowDataBound(object sender, GridViewRowEventArgs e)
      {
          if (e.Row.RowType == DataControlRowType.DataRow)
          {
              decimal rowTotal = Convert.ToDecimal
              (DataBinder.Eval(e.Row.DataItem, "DC_No_Decimal"));
              //grdTotal = grdTotal + rowTotal;
              grdTotal += rowTotal;
          }
          if (e.Row.RowType == DataControlRowType.Footer)
          {
              Label lbl = (Label)e.Row.FindControl("lblTotal");
              e.Row.Cells[3].Text = grdTotal.ToString("c");
              //lbl.Text = grdTotal.ToString("c");
          }       
      }
  </code></pre>
  
  <p>from the above code i m getting total for every page in the grid view. Instead of getting total to every page i need all page total at the end of the grid view footer. Help Immediatly.
  Thanks in advance</p>