"Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function." keeps popping
<p>I have a datagridview which takes datasource from a datatable
one of the columns is an int</p>

<p>i wish the program to display an error whenever the user tries to enter a string into that column</p>

<p>i add this to the DataError event</p>

<pre><code>   private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
    {
        MessageBox.Show("Incorrect data type was entered");
        e.Cancel = true;
    }
</code></pre>

<p>First of all the messagebox shows up twice in a row instead of just once<br>
Secondly i get an irritating error after the 2 messageboxes:<br>
Unhandled Exception with the error:</p>

<blockquote>
  <p>System.InvalidOperationException: Operation is not valid because it
  results in a reentrant call to the SetCurrentCellAddressCore function.</p>
</blockquote>
