title: How to add header row of a row in a gridview
body: <p>I just added checkboxes to a gridview programatically as following:</p>
  
  <pre><code>foreach (GridViewRow gvr in GridView1.Rows)
  {
     TableCell tbCell = new TableCell();
     CheckBox cb1 = new CheckBox();
     tbCell.Controls.Add(cb1);
     gvr.Cells.Add(tbCell);
  }
  </code></pre>
  
  <p>My problem is my header row doesn't get created. How can I programatically make this?</p>
  
  <p>Check the gap in corner on the link to an image.</p>
  
  <p>Thanks in advance</p>
  
  <p><a href="http://postimage.org/image/klvbbv1xh/" rel="nofollow">http://postimage.org/image/klvbbv1xh/</a></p>