Programmatically end editing

Is there a way to programmatically end editing of a cell in a grid, when an external event occurs?

It should emulate the user pressing enter with the current contents of the inplace editor conserved.

Best regards
Søren

Yes, call:

grid.HideInplaceEdit;