title: How to format a date column in a DataGrid from VB
body: <p>I have a .aspx file with a datagrid in it:</p>
  
  <pre><code>&lt;asp:DataGrid ID="Gifts"
  AutoGenerateColumns="True"
  runat="server" AllowSorting="True"&gt;
      &lt;/asp:DataGrid&gt;
  </code></pre>
  
  <p>The .aspx.vb file associated with it fills it in with a datagrid object.</p>
  
  <pre><code>Protected WithEvents Gifts As System.Web.UI.WebControls.DataGrid
  Public GiftData As DataTable
  Gifts.DataSource = New DataView(GiftData)
  Gifts.DataBind()
  </code></pre>
  
  <p>That all works fine. However I want to format one of the columns with a particular date format. Is there a way of doing that in the vb code? I know I can do it in the .aspx by specifing AutoGenerateColumns="False" and then explicitly defining the columns, but I want to do it in the code as it's more future proof for my application.</p>