Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Save data in XamDataGrid in edit mode
posted

Hi,

I have an XamDataGrid in XamDialogWindow (which is used for MDI replacement). I would like to prompt user to save the data before dialog window is closed and I would like to track the situation when user is in grid's edit mode and adding a new record. I would like to update the new value before exit. I created some boolean variable, set it to true on grid's EditModeStarted event and clear it on EditModeEnded. Then on WindowStateChanging event for XamDialogWindow I check the variable, and if grid.ActiveCell.Record.IsAddRecord == true, I try to execute EndEditModeAndCommitRecord command by the grid. As far as I can see, nothing happened, underlying data binded collection still has 0 records. What can be wrong ?

Thanks,

Ed