title: Gridview Column Removing
body: <p>I have a web application that I am working on(ASP.NET 2.0 C#). In it I have a GridView whose data source is an Oracle database. I get the data into the gridview in my codebehind, and don't set the datasource directly. </p>
  
  <p>I wanted to create a hyperlink field (NAME) that takes me to a details page about a specific record. What ends up happening is that it creates the Hyperlink field as well as the regular field that it gets from the datasource, which I don't want. If I remove the field from my SELECT statement, it gives an error saying something like: "NAME" not found in datasource.</p>
  
  <p>How can I eliminate the regular field, and get a hyperlink field instead? I have tried <code>Gridview.Columns.Remove(columnlocation)</code>, but that won't work coz the columns don't exist there originally. </p>
  
  <p>Please Help
  Thank you.</p>