Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 4eb795c

Browse files
committed
Revert most of "Redraw the row after canceling inline editing to avoid showing stale content."
Keep only the part that moves the call to RegisterUpdate() in CancelEdit().
1 parent cd2473f commit 4eb795c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Controls/Grid/Grid.UWP/View/Services/Editing/EditingService.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;
@@ -181,20 +181,18 @@ public bool CancelEdit(ActionTrigger trigger)
181181
if (trigger != ActionTrigger.ExternalEditor)
182182
{
183183
this.Owner.ExternalEditor.CancelEdit();
184-
this.Owner.CurrencyService.RefreshCurrentItem(true);
185184
}
186185
}
187186
else
188187
{
189188
this.Owner.Model.CancelEdit();
190189
this.Owner.EditRowLayer.EditorLayoutSlots.Clear();
191-
this.Owner.CurrencyService.RefreshCurrentItem(true);
192190
}
193191

194192
this.Owner.Model.CurrentDataProvider.CancelEditOperation(this.EditItem);
195193
})
196194
{
197-
Flags = UpdateFlags.AffectsData
195+
Flags = UpdateFlags.AffectsContent
198196
};
199197

200198
foreach (var pair in this.operation.OriginalValues)

0 commit comments

Comments
 (0)