Canceling a datagrid cellendediting does not stop editing?
<p>I'm implementing a wpf datagrid cellendediting event, which performs an action that can fail. If the action fails I set the event as cancelled. This is a basic example:</p>

<pre><code>private void datagrid_CellEditEnding(object sender, DataGridCellEditEndingEvent e)
{
    e.Cancel = true;
}
</code></pre>

<p>Which does cancel the value from being set, however the datagridcell is still in the edit state. I cannot figure out how to actually cause the cell to end editing when I cancel. Any suggestions?</p>