Hi,
Our FlatDataSource's ItemsSource is set to an ICollectionView which wraps an ObservableCollection. The items in the collection do implement INotifyPropertyChanged.
Does the grid data refresh automatically when new items are added/removed to the collection and when they fire the PropertyChanged event?
If not - what's the best way to handle this? Calling FlatDataSource.RefreshGrid whenever the collection is changed doesn't seem optimal.
We'd like to have a couple of editable columns. If RefreshGrid is called while the we're editing those columns, their value is reset before we're finished.
Thanks.
I have created a simple project that fits the scenario described above. XamPivotGrid refreshes automatically when new item is added/removed.
Thanks,
M.Yovchev
I can see it's working because you manually call the SalesCollection.Refresh() method. I was expecting the XamPivotGrid to reflect the changes upon adding items to the ObservableCollection.
BTW if you wanted to update the Sale's NumberOfUnits property and had the Pivot Grid reflect the changes - how would you do it?