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

Commit af793ef

Browse files
committed
Ensure row refreshes and redraws after committing a change from inline edit mode.
1 parent e379b6b commit af793ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,20 @@ public bool CommitEdit(ActionTrigger trigger)
118118
if (trigger != ActionTrigger.ExternalEditor)
119119
{
120120
this.Owner.ExternalEditor.CommitEdit();
121+
this.Owner.CurrencyService.RefreshCurrentItem(true);
121122
}
122123
}
123124
else
124125
{
125126
this.Owner.Model.CommitEdit();
126127
this.Owner.EditRowLayer.EditorLayoutSlots.Clear();
128+
this.Owner.CurrencyService.RefreshCurrentItem(true);
127129
}
128130

129131
this.Owner.Model.CurrentDataProvider.CommitEditOperation(this.EditItem);
130132
})
131133
{
132-
Flags = UpdateFlags.AffectsContent,
134+
Flags = UpdateFlags.AffectsData,
133135
Priority = CoreDispatcherPriority.Low
134136
};
135137

@@ -138,7 +140,7 @@ public bool CommitEdit(ActionTrigger trigger)
138140

139141
this.Owner.updateService.RegisterUpdate(update);
140142

141-
update = new DelegateUpdate<UpdateFlags>(() =>
143+
update = new DelegateUpdate<UpdateFlags>(() =>
142144
{
143145
if (this.Owner.UserEditMode == DataGridUserEditMode.External)
144146
{

0 commit comments

Comments
 (0)