title: C# Add HyperLinkColumn to GridView
body: <p>I'm trying to add HyperLinkColumns dynamically to my GridView. I have the following code:</p>
  
  <pre><code>HyperLinkColumn objHC = new HyperLinkColumn();
  objHC.DataNavigateUrlField = "title";
  objHC.DataTextField = "Link text";
  objHC.DataNavigateUrlFormatString = "id, title";
  objHC.DataTextFormatString = "{2}";
  
  GridView1.Columns.Add(objHC);
  </code></pre>
  
  <p>This doesn't work, so.. how can i add a HyperLinkColumn to my GridView?</p>