Answer the question
In order to leave comments, you need to log in
How to reduce memory consumption in WPF DataGrid?
There is a DataGrid where data is uploaded at the request of the user. The amount of data is over 10,000 rows and approximately 12 columns.
As ItemSourse I use DataTable, which I get in the following form
var dataTable = new DataTable();
dataTable.Load(con.ExecuteReader(select));
Answer the question
In order to leave comments, you need to log in
Definitely need a pagination. No one takes out such volumes at once.
In extreme cases, loading as you scroll, with the removal of the upper part from the grid.
Even in width, it is not necessary to display everything, you can hide not the most critical data behind the "more" button and load it for viewing by clicking as additional data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question