title: Add Gridview Row AFTER Header
body: <p>i'm trying to add a new headerrow to a Gridview. This row should appear below the original headerrow.</p>
  
  <p>As far as I know I have two events to choose from:</p>
  
  <p>1.) Gridview_RowDataBound
  2.) Gridview_RowCreated</p>
  
  <p>Option 1 is not an option as the grid is not binding the data on each postback.
  Option 2 does not work as expected. I can add the row, but it is added before the HeaderRow because the HeaderRow itself is not added yet in this event...</p>
  
  <p>Please assist, thank you!</p>
  
  <p>Code: (InnerTable property is exposed by custom gridview)</p>
  
  <pre><code>    Private Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
      If e.Row.RowType = DataControlRowType.Header Then
          Dim r As New GridViewRow(-1, -1, DataControlRowType.Header, DataControlRowState.Normal)
  
          For Each c As DataControlField In CType(sender, GridView).Columns
              Dim nc As New TableCell
              nc.Text = c.AccessibleHeaderText
              nc.BackColor = Drawing.Color.Cornsilk
              r.Cells.Add(nc)
          Next
  
          Dim t As Table = GridView1.InnerTable
          t.Controls.Add(r)
      End If
  End Sub
  </code></pre>