I have a DataGridView
which is typically populated with 40k-50k rows in the application. If I have so many rows, then the performance of the DataGridView
takes a hit during selection of different rows. What is the best method to optimize the performance of the DataGridView
? I read about using Virtual Mode, but I am not sure how to implement it. Does turning VirtualMode
to true
take care of everything, or do we have to write our own handlers for when a row is needed to be shown?
Take a look at Virtual Mode and this tutorial . Referenced from How to optimize the performance of DataGridView
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.