Trigger Grid row validation when selection of cell editor LookUpEdit changes
<p>I have a <code>DevExpress.XtraGrid.GridControl</code> which has a column using <code>DevExpress.XtraEditors.Repository.RepositoryItemLookUpEdit</code> as cell editors.</p>

<p>When I select an item from the LookUpEdit, this does not cause any validation but does nothing until I click anywhere to make the Grid lose focus.</p>

<p>My desired behaviour would be that changing the LookUpEdit's selection immediately triggers a row validation event of the Grid.</p>

<p>How could this be achieved?</p>

<p>The <a href="https://documentation.devexpress.com/#WindowsForms/CustomDocument749" rel="nofollow">official DevExpress Documentation</a> tells to call the GridView's <code>UpdateCurrentRow</code> method: </p>

<blockquote>
  <p>There may be cases when you need to implement row validation. [...] To do so, handle the <code>ColumnView.ValidateRow</code> event. Note that you can also initiate row validation manually by calling the <code>ColumnView.UpdateCurrentRow</code> method.</p>
</blockquote>

<p>I did this in the GridView's <code>ValidatingEditor</code> event handler:</p>

<pre><code>private void gridView1_ValidatingEditor(object sender,BaseContainerValidateEditorEventArgs e)
{
    (sender as GridView).UpdateCurrentRow();
}
</code></pre>

<p>However, now I can't add new rows to the Grid any more as end-user.</p>

<p>What would be the correct approach?</p>

<hr>

<p><strong>Update:</strong></p>

<p>I am now listening to the GridView's <code>CellValueChanging</code> event and handling it like this:</p>

<pre><code>private void gridView_CellValueChanging(object sender, CellValueChangedEventArgs e)
{
    GridView gv = (sender as GridView);
    gv.CellValueChanging -= gridView_CellValueChanging;  // detach this event handler
    gv.ActiveEditor.EditValue = e.Value;  
    gv.CellValueChanging += gridView_CellValueChanging;  // re-attach handler
    gv.CloseEditor();
}
</code></pre>

<p>I am sure this is not the way how one should do it, but it works for existing rows. However, it does not work on the "new row" - I still have to click anywhere else to apply changes that create a new entry. I want a new row to be created as soon as any cell of the "new row" got edited.</p>