title: asp.net Gridview with date selection
body: <p>I have a simple gridview that I would like to use to update a SQL table.  I have the gridview set up using template fields.  The first 5 columns are data report fields like customer, job name etc.  These fields will not be editable.  The next fields are all date fields.  The user will edit a row and add the date for the activity.  The first column is import date, so the user would enter 12/4/2013.  I was thinking it would be nice to have a date picker.  With over 10 stages that need to be reported, this may make the edit very difficult.  So in lieu of a date picker is there a way to check that the user has entered a valid date format at the time of entry?  If the user entered 12/4/2013 (US date format), this would be acceptable.  But if they entered 12/32/2013 it would reject the date as not a valid date?</p>
  
  <p>Below is the code for how I have the template fields set up in the gridview for the first 5 columns.  I was hoping to use this to create the edit templates.</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Pages"&gt;
  &lt;ItemTemplate&gt;
  &lt;asp:Label ID="lblPages" runat="server" Text='&lt;%# Eval("Pages")%&gt;'&gt;
  &lt;/asp:Label&gt;
  &lt;/ItemTemplate&gt;
  &lt;HeaderStyle Width="60px" HorizontalAlign="Center"/&gt;
  &lt;ItemStyle Width="60px" HorizontalAlign="Right" /&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>