i have a Gridview with the itemssource bound to an VirtualQueryableCollectionView called Collection in the ViewModel.
When the Collection is initialized for the first time, everything works fine, Collection_ItemsLoading is called.
Then i have to load a new Collection into the grid, but then the Collection_ItemsLoading
is never called again, olny for the first time for the initial collection.
I used this version: 2011.3.1205.1040
Any Idea, how to fix this bug?
The following code works for the first time, but not the second time and any subsequent call:
Collection = new VirtualQueryableCollectionView();
Collection.ItemsLoading += new EventHandler<VirtualQueryableCollectionViewItemsLoadingEventArgs>(Collection_ItemsLoading);
foreach (ColumnSortDescriptor cs in list)
Collection.LoadSize = 100;
Collection.VirtualItemCount = itemCount;