title: when escape key is pressed in a row in datagridview then text should be deleted from that row
body: <p>I am getting an error in row validating when I press the escape key. Instead of deleting the text from the datagridview row i.e I added text in a new row. I don't want to save that row and I don't want to close the form. Simply, when I press the Escape key from the keyboard the text should be deleted. I am using this code in datagridviewrow validating event.</p>
  
  <pre><code>if (string.IsNullOrEmpty(dgTests.CurrentRow.Cells["Column1"].Value.ToString()) &amp;&amp; !string.IsNullOrEmpty(dgTests.CurrentRow.Cells["Column2"].Value.ToString()))
  {
      dgTests.Rows[e.RowIndex].ErrorText = "Column1 should not be empty";
      e.Cancel = true;
  }
  </code></pre>