How to prevent DataGridView from repainting?
C#
3
Posts
3
Posters
0
Views
1
Watching
-
How to Maintains performance while rows are added to the DataGridView one at a time by preventing the control from drawing until the EndUpdate method is called?
-
How to Maintains performance while rows are added to the DataGridView one at a time by preventing the control from drawing until the EndUpdate method is called?
If SuspendLayout() and ResumeLayout() don't give you the performance you want, for some strange reason, setting the Visible property to false while adding rows and then changing Visible to true after you're done seems to give an even bigger performance boost. Don't ask me why, but I did a lot of testing to verify it just a few weeks ago.