I have a DataGrid which has a DataTable set as its ItemsSource. The DataTable holds 24 columns and ~1600 rows (actually I will have to load alot more rows later on, but for now this is troublesome enough).
Despite setting virtualization for columns and rows active, the DataGrid takes around 30 seconds to display those 1600 rows. After that, scrolling vertically works fine, horizontally is laggy, though you'd expect it the other way around.
If I run a memory profiler, I can verify that most of the memory used by the application comes from DataGridCells, Borders, ContentPresenters and Textblocks. To me, this indicates that the grid does not virtualize its rows properly.
Can anyone confirm that there's an issues with DataGrid's virtualization? Or is there some sort of infamous trap in the implementation of this control?
Looking forward to any kind of input/suggestions. Thanks :)