Hello arkiboys
Apart from others' suggestions, you may also consider using VirtualModeof DataGridView. Virtual mode is designed for use with very large stores of data, to prevent hangs in UI. When the VirtualMode property is true, you create a DataGridView with a set number of rows and columns and then handle the CellValueNeeded event to populate the cells. Virtual mode requires implementation of an underlying data cache to handle the population, editing, and deletion of DataGridView cells based on actions of the user. For more information about implementing virtual mode, see How to: Implement Virtual Mode in the Windows Forms DataGridView Control. Please refer to the article How to: Implement Virtual Mode in the Windows Forms DataGridView Control for an example of VirtualMode.
By the way, this issue is related to Winforms. Please post this kind of questions to the Windows Forms Data Controls and Databinding forum in future.
Regards,
Jialiang Ge
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.