Add gridview column in code behind
<p>I am working on gridview in C# and I need to add a column dynamically.
I need to achieve the following mark up in the code behind,</p>

<pre><code>   &lt;headertemplate&gt;                          
    &lt;a href="javascript:var popup = window.open('Pop.aspx? param=myParameter','Pop','width=200,height=200');"&gt;
     &lt;asp:Label ID="Label1" runat="server" Text="ColumnName" 
      ToolTip="Click here for more information"&gt;&lt;/asp:Label&gt;
       &lt;/a&gt;
   &lt;/headertemplate&gt;
&lt;Itemtemplate&gt;
....
</code></pre>

<p>The column has underline where user can click to open a popup.  </p>

<p>Thanks.</p>
