using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Views.Base;
private void gridControl1_Leave(object sender, EventArgs e)
{
DevExpress.XtraGrid.Views.Base.ColumnView view = gridControl1.FocusedView as ColumnView;
view.CloseEditor();
view.UpdateCurrentRow();
}