When a new item is initialised to certain default values in the CreatingNewItem event handler of a DataGridCollectionViewSource, if the user wishes to keep these default values and clicks away or presses enter to exit edit mode in an insertion row without changing any values, how do I allow the new item to be committed rather than cancelled?
I have tried implementing InitializingNewItem and NewItemCreated in order to initialise the values in the hope that this will be seen as a change to the original item created in CreatingNewItem, but this doesn't work either.
I have attached an example project demonstrating the issue.
Any help greatly appreciated.
Thanks,
Jason
Associate, .NET Development
Morgan Stanley, UK