title: ASP.NET: Programatically DataBind a GridView control
body: <p>I have a blank/unbound GridView control on my form and I am binding it in the code behind like this:</p>
  
  <pre><code>GridView1.DataSource = _dataSet
  DataBind()
  </code></pre>
  
  <p>Running this code populates my <code>GridView</code> control with all the columns and data that <code>_dataSet</code> has. I want to display only some of the columns, change the column names, and rearrange some of these columns too (i want the last column from the actual sql database table to be displayed first in my GridView).</p>
  
  <p>Can someone show me how do do this?</p>