I have a XamPivotGrid with AllowCellEdit set to true. If I click on a cell and edit the value, and then just click off the pivot grid so the focus is set to something outside of the pivot grid, the edit is not committed; the CellEditing and CellEdited events do not fire.
The edit is committed if I were to press enter or tab or click to another cell, but it is not committed when the pivot grid just looses focus. How can I get the edit to commit when the pivot grid just looses focus?
Thank you for the post. I am able to reproduce the behavior you described nd looks like its per design of the control.
I was been looking for the workaround and find this post suggested to set the active cell manually and change it through KeyDown event. I would recommend you to refer this post’s verified answer to get the complete information and a sample application.
Thanks for replying. I'm not sure the answer in that post is going to solve this problem as there are no key presses involved. In fact, the sample application for that answer has the same problem as me. In the app, if you edit a cell and then tab to another cell and press enter, the new cell goes into edit mode, but the edited cell you just tabbed away from does not commit the change, it cancels the edit and reverts to the original value.
The goal is to find a way to commit the edit when the cell currently being edited looses focus. It seems like the only way to commit an edit is to press enter on the cell you are editing or to mouse click on another cell in the grid. Tabbing and loosing focus do not commit.
Hello Kevin ,
You are right I am able to reproduce the behavior with the attached sample as well. And I looked into the XamPivotGrid API I don’t see any property or method been exposed to handle the scenario. As I said control is been designed like that ,this behavior is as per designed the control.
If you want I can log this behavior as a feature bug but not sure if that will be on priority. Let me know if you need further assistance.