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

Commit 2d310d3

Browse files
committed
Fix copy/paste bug in EditingService.cs that corrupted DataGrid state when inline editing row items that send PropertyChanged notifications.
1 parent 454cec6 commit 2d310d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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;
@@ -85,7 +85,7 @@ public bool BeginEdit(ItemInfo rowInfo)
8585
this.Owner.EditRowLayer.ScheduleFirstEditorForFocus();
8686
}
8787

88-
this.Owner.Model.CurrentDataProvider.CommitEditOperation(this.EditItem);
88+
this.Owner.Model.CurrentDataProvider.BeginEditOperation(this.EditItem);
8989

9090
// hide the CurrentItem decoration
9191
this.Owner.visualStateService.UpdateCurrentDecoration(-1);
@@ -189,7 +189,7 @@ public bool CancelEdit(ActionTrigger trigger)
189189
this.Owner.EditRowLayer.EditorLayoutSlots.Clear();
190190
}
191191

192-
this.Owner.Model.CurrentDataProvider.CommitEditOperation(this.EditItem);
192+
this.Owner.Model.CurrentDataProvider.CancelEditOperation(this.EditItem);
193193
})
194194
{
195195
Flags = UpdateFlags.AffectsContent

0 commit comments

Comments
 (0)