I'm using the GridView in a project and I have an issue that I'm hoping has an easy solution. See, my GridView is bound to an ObservableCollection and inserts are enabled. Elsewhere in my UX (on a completely different View, in fact) I have a Save button that will send the contents of the collection off to a web service for processing. The button and GridView have no knowledge of each other in this MVVM app.
The issue that I'm having, however, is that when a user inserts a new row, but doesn't press ENTER or ESC to cancel or commit then clicks on the Save button, the collection is in a half-baked state. My preferred behavior would be for the GridView to commit the row edit whenever the GridView clicks anywhere outside of the row being edited. Is that possible?
The issue that I'm having, however, is that when a user inserts a new row, but doesn't press ENTER or ESC to cancel or commit then clicks on the Save button, the collection is in a half-baked state. My preferred behavior would be for the GridView to commit the row edit whenever the GridView clicks anywhere outside of the row being edited. Is that possible?