Core: Cancel editing on grid clearing