title: Dynamically creating a datatable with one column as hyperlinks
body: <p>First off: I am aware that there have been some vaguely similar requests on here already, but none give a complete solution to my problem, and I'm at my wit's end trying to piece together a solution.</p>
  
  <p>Anyway, so I am writing a web interface to get some info from a RESTful API. I am generating a datatable, which I display via a gridview like this:</p>
  
  <pre><code>DataTable table = new DataTable();
  table.Columns.Add("entry name");
  table.Columns.Add("col1");
  table.Columns.Add("col2");
  table.Columns.Add("etc");
  
  foreach(string name in GetNames())
  {
      DataRow row = table.NewRow();
      row["name"] = name;
      row["col1"] = SomeMethod(name);
      row["col2"] = SomeOtherMethod(name);
      row["etc"] = YouGetTheIdea(name);
      table.Rows.Add(row);
  }
  
  GridView1.DataSource = table;
  GridView1.DataBind();
  </code></pre>
  
  <p>So far so fine.  What I would really like is for the "name" column to be hyperlinks, such that either they call a method with the name as a parameter; or link to a website, with the name as part of the URL, i.e. like this:</p>
  
  <pre><code>"&lt;a href:'www.example.com/" + name + ".csv'&gt;" + name + "&lt;/a&gt;"
  </code></pre>
  
  <p>I can't for the life of me figure out how to do these things as dynamically as I would like.  Your help would be much appreciated.  Thanks.</p>