private void OrderSearchLookUpEditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e) { var oldOrder = new Order { Identity = (int)e.OldValue }; oldOrder.LoadSingleObject(); oldOrder.DeleteObject(); var newOrder = new Order { Identity = (int)e.NewValue }; newOrder.LoadSingleObject(); newOrder.CopyOrder(); newOrder.IsPredefined = true; newOrder.OrderName = newOrder.OrderName.Replace("[Kopie]", "[Predefined]"); newOrder.SaveObject(); e.NewValue = newOrder.Identity; }