title: Handle dataGridView FormatExeption on edit
body: <p>I'm making a datagridview with four columns. The last column's type is DateTime in Hours and minutes (HH:mm).</p>
  
  <pre><code>    DataTable.Columns.Add("Time", typeof(DateTime)); //fourth column
      dataGridView2.Columns[3].DefaultCellStyle.Format = "HH:mm";
  </code></pre>
  
  <p>When i put in a valid HH:mm(12:37) format it works just fine, but it gives me an error message if the format is invalid (12:374).</p>
  
  <pre><code>    The string wasn't regigniced as a valid DateTime --&gt; System.FormatExeption
  </code></pre>
  
  <p>It tells me to handle the "DataError-exeption / FormatExeption" to change what happens when the error occurs, but how do i do that? </p>
  
  <p>I want it to go back to the value it was before the error occurs.</p>
  
  <p>Any help will be appreciated. thanks in advance.</p>
  
  <p>PS. If i'm unclear somewhere, or if you need more information then just explain what's needed.</p>
  
  <p>EDIT: I am editing the time value directly from the dataGridView.</p>