title: GridView Footer row is null
body: <p>Footer is set to visible and I can see it's being created. However when total (table sums) are passed over to it, there's error indicating GridView2.FooterRow is null...
  totTable refers to a DataTable carrying totals. </p>
  
  <p>aspx:</p>
  
  <pre><code>ShowHeader="true" ShowFooter="true" FooterStyle-CssClass="FooterStyle"
  </code></pre>
  
  <p>cs:</p>
  
  <pre><code> DataRow dr = totTable.Rows[0];
   foreach (DataControlField col in GridView2.Columns)
                  {
                      foreach (DataColumn dc in totTable.Columns)
                      {
                          int i = GridView2.Columns.IndexOf(col);
                          GridView2.FooterRow.Cells[i].Text = dr[i].ToString();
  
                      }
                  }
  </code></pre>
  
  <p>What's the root cause behind this?</p>