I have a common data source, that I can open multiple xamDataGrid views with. When I edit a value in one grid, it updates the data source, and all the other grids reflect the change. Now if the second grid edits the same value in the source data set, it is not updated in the cell value of the first grid, but updated in the local grid, and the data source is updated. If I try to edit the same value in the first grid, the second grid does not reflect the update. If I open a third grid on the data, but do not edit that value, it reflects the lastest change from whichever other grid changes the value. Once the grid edits a value, it does not receive any updates on that value from other sources.
Anybody help with this issue?
Greg,
The behavior that is seen in the sample is expected because the bindings are lost after editing the cell when the binding is a one way binding (which is the default mode). To correct the behavior and allow editing you will need to use a two way binding. For example:
Binding = new Binding("FC") { Mode = BindingMode.TwoWay }
Let me know if you have any questions with this matter.
I have logged the issue with updating the value displayed in the cells after they have been edited with development as development issue 100642. I have provided more details on this through case CAS-82764-SCK25W. When the development issue is resolved I will update you through the case and post the resolution here.
I've attached a simple sample here. If you edit the 'FC' column, on edit mode ended, it updates all the boolean fields. Then edit the BC field, the FC field no longer gets updated. Slightly modified sample I received from IG.
I believe there is some setting flag that does not allow cells to be updated while the cell is being edited. It seems like the cell is retaining this behavior after sending the DataPresenter.ExecuteCommand(DataPresenterCommands.EndEditModeAndAcceptChanges). Once the cell is updated from editing, it does not update from the datasource after being edited. Does it need to be explicitly ended in the editor or somewhere else?
Hello,
I have been looking into your issue and in order to reproduce and test issue I would need to know a little bit more about your common data and the views you are showing. Would you please describe your data source in more details and if possible provide us with a test sample we can work on.
Looking forward to hearing from you.