Reputation: 6124
still trying to get my DataGrid go faster, I have a question about this:
myDataGrid.SetValue(VirtualizingStackPanel.IsVirtualizingProperty, true);
I have read on multiple occasions that this could improve the dataGrid's loading time.
Right...
so my questions:
Upvotes: 1
Views: 661
Reputation: 184526
According to the answer to this question virtualization is turned on by default, so it's no surprise that there is no difference if you add that line.
Virtualization means that the controls needed for data display are generated only if the data is visible, that means invisible rows use no additional memory for their controls if they are not visible, after all there is no need to generate thousands of controls if only 20 are visible at a time.
Upvotes: 2