title: how to set a datagridview column to date format
body: <p>I have created a DataGridView and I add columns to it like this:</p>
  
  <pre><code>Dim col_1 = New DataGridViewTextBoxColumn
  col_1.Name = "Date"
  col_1.DefaultCellStyle.Format = "MM/dd/yyyy"
  data_grid.Columns.Add(col_1)
  </code></pre>
  
  <p>then I add data to the column like this:</p>
  
  <pre><code>data_grid.Item(1,1).Value = temp_date 
  </code></pre>
  
  <p>The grid is filled with the correct data and everything works, however...when I click on the column headers, the column that shows the dates does not sort correctly (it sorts alphabetically) and I know this is because I set it up as "DataGridViewTextBoxColumn", but there is no option for a date type column. So how to I set it up as a date column so it sorts based on the date when the header is clicked?</p>
  
  <p>Thanks.</p>