title: How to Catch Binding Error on WPF DataGrid
body: <p>I have a DataGrid in which all the elements are bound to ViewModel.</p>
  <p>Once I enter a character inside a DataGridComboBoxColumn which is bound to a Float. The UI shows an error, however, I can proceed with the previous bound float. I want to catch the binding error before letting the user proceed.</p>
  <p>for Example:</p>
  <p><img src="https://i.stack.imgur.com/PgJgC.png" alt="enter image description here" /></p>
  <p>now if I enter character &quot;h&quot; in Amplitude Column:</p>
  <p><img src="https://i.stack.imgur.com/Wo26K.png" alt="enter image description here" /></p>
  <p>But once I hit the send button, I can proceed with the value of &quot;1&quot; which is entered before a data binding error happens.</p>
  <p>I have tried following code but it didn't work:</p>
  <p><code>Validation.GetHasError(NoiseParamDataGrid);</code></p>
  <p>Also, I want to get the error message as well to show in the message box.</p>