Hi I am using the DataGrid with UI virtualization enabled.
In XAML the main attributes set on the Grid are:
EnableRowVirtualization="True"
ScrollMode="Deferred"
SelectionMode="Extended"
The grid binds to a VirtualQueryableCollection that makes uses of the ItemsLoading event to load data into the VirtualQueryableCollectionView.
So a queryable is not passed in as a constructor.
The Grid is working fine except for when I want to call Grid.SelectedItems.Clear().
I am manually populating the Grid.SelectedItems with the correct rows that should be selected.
The Grid has 240,000 rows. I select a few rows at the top to the grid.
Then I scroll down the bottom of the grid.
At the bottom I add another row to the selection, so Grid.SelectedItems has 3 items in it. Everything is fine.
A call is made to Grid.SelectedItems.Clear().
The process freezes and eventually a Stackoverflow exception is thrown.
The stacktrace does not show much. Throughout the trace a call to VirtualQueryableCollection.Load() is occurring for the whole list in increments of the LoadSize (100).
This is with version:
2013.1.022.0.40
If I try version
2012.3.1129.40
The process does not have a Stackoverflow exception but is stuck in a loop and does not return.
If I select items at the top of the grid only, it works fine. And if I select items at the bottom of the grid it works fine.
The machine I work on is not connected to the internet but I may be able to provide the stacktrace if needed.
In XAML the main attributes set on the Grid are:
EnableRowVirtualization="True"
ScrollMode="Deferred"
SelectionMode="Extended"
The grid binds to a VirtualQueryableCollection that makes uses of the ItemsLoading event to load data into the VirtualQueryableCollectionView.
So a queryable is not passed in as a constructor.
The Grid is working fine except for when I want to call Grid.SelectedItems.Clear().
I am manually populating the Grid.SelectedItems with the correct rows that should be selected.
The Grid has 240,000 rows. I select a few rows at the top to the grid.
Then I scroll down the bottom of the grid.
At the bottom I add another row to the selection, so Grid.SelectedItems has 3 items in it. Everything is fine.
A call is made to Grid.SelectedItems.Clear().
The process freezes and eventually a Stackoverflow exception is thrown.
The stacktrace does not show much. Throughout the trace a call to VirtualQueryableCollection.Load() is occurring for the whole list in increments of the LoadSize (100).
This is with version:
2013.1.022.0.40
If I try version
2012.3.1129.40
The process does not have a Stackoverflow exception but is stuck in a loop and does not return.
If I select items at the top of the grid only, it works fine. And if I select items at the bottom of the grid it works fine.
The machine I work on is not connected to the internet but I may be able to provide the stacktrace if needed.