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
65
Hierarchical XamGrid with ObservableCollection - how to update
posted

I have a hierarchical XamGrid which has it's item source set to:an observableCollection of consisting of my own created FileType each of which implement INotifyChange interface. The FileType contains FileName and VersionNo and other info

The FileType has an ObservableCollection called Versions that contains FileName and Version number

In order to display the data, i have to set the data grid itemsource to null, then assign the observableCollection of FileType to the grid itemsource property.

When the user clicks on a row, i gather the Versions info and update the Versions ObservableCollection for the particular FileType. So if File1 has 3 versions, I add that to the Versions for File1.

Now, when I do that, I want the XamGrid to show the change in the UI. Right now it is not working. I have to set the itemsource to null and re-bind the updated Observable collection of FileType to it