On a dataform with AutoCommit = True....
Am I correct in assuming that means that, when the user is editing an item and then navigates to another item, the dataform should commit the current edit before changing the current item? Likewise, if False, the dataform should cancel the edit, and return the object to its original values.
If that is true, then I would expect to see an EditEndingEvent then an EditEndedEvent thrown with the EditAction = EditAction.Commit.
(on the flipside, if AutoCommit = false, I would expect to see the same events with EditAction = EditAction.Cancel)
This is not happening. Am I misunderstanding the purpose of this setting?
I need the opportunity, before the current item has changed, to validate the edit and to update the database with the changes. If the item does not pass the validation, then I need to be able to cancel the item change, keeping the user on the current item until it is valid, or the user cancels the edit.
In this situation, the datasource is a CollectionViewSource, and the CurrentItem is being changed by the user clicking on a RadGridView connected to the same source.
Can anyone provide any insight into making this scenario work properly?
Is it possible that it does work as expected, but I've done something to prevent the AutoCommit from working properly? (like a wrong datasource type or my custom CommandProvider)