Hello, all. I have a XamDataGrid bound to viewmodel data. Clicking an individual row of the grid causes the data of the active record to populate detail fields in an "edit pane" below the grid. With the pane, a user can edit the individual data for the row. Clicking a save button in the edit pane (or just changing focus to another control) causes the data for the active row to change in the grid. This is not true if a data column is bound to a WPF combobox in the edit pane. Why is this? My viewmodel implements INotifyPropertyChanged, so I am seeing the value change, and of course the combobox data has changed, but changing focus does not change the grid row value. Any help is greatly appreciated. Thanks!
Hi,
I hadn’t heard back from you. I was wondering if you had further questions.
If so, please feel free to contact me.
Is the combobox data change causing the underlying data to be updated?
Please give me more information about how you have bound the combobox in the edit pane. You mentioned “data column” but I’m not clear about what you are doing.
My first assumption would be that your xamDataGrid is bound to the viewmodel that implements INotifyPropertyChanged.
And I’m guessing that the combobox in your edit pane contains a separate collection of all of the distinct values of some property of your viewmodel collection. I’m also assuming that you are using a selection changed event to update the underlying viewmodel collection of the xamDataGrid item.
I would expect this implementation to cause the xamDataGrid to reflect the new selection in the combobox.
Please let me know if I’m understanding your design.
Anyone?