title: Gridview BoundField Remove Time from DateTime In Edit/Update Mode
body: <p>I have the following GridView:</p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
      DataKeyNames="EVENT,TERM_CODE" DataSourceID="OracleDataSource" ShowHeaderWhenEmpty="True"
      EnableViewState="False"&gt;
      &lt;Columns&gt;
          &lt;asp:CommandField ShowEditButton="True" /&gt;
          &lt;asp:BoundField DataField="EVENT" HeaderText="Event" ReadOnly="True" 
              SortExpression="EVENT" /&gt;
          &lt;asp:BoundField DataField="TERM_CODE" HeaderText="Term Code" ReadOnly="True" 
              SortExpression="TERM_CODE" /&gt;
          &lt;asp:BoundField DataField="SNAPSHOT_DATA_DATE" HeaderText="Snapshot Date" 
              SortExpression="SNAPSHOT_DATA_DATE" DataFormatString="{0:d}"  /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>The SNAPSHOT_DATA_DATE column is a DateTime field in the database.<br>
  I only want to show the date not both the date and time ex. 7/25/2012<br>
  So I added <code>DateFormatString="{0:d}"</code> to the BoundField and this works great when viewing the Gridview. However, if I click the edit link to update the date it displays as: 7/25/2012 12:00:00 AM The DateFormatString is ignored in edit mode. Can someone  please tell me how to remove the time when in edit / update mode? I don't want users dealing with the time only the date.</p>