code_junkie

Horrible redraw performance of the DataGridView on one of my two screens

Nov 11th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. class CustomDataGridView: DataGridView
  2. {
  3. public CustomDataGridView()
  4. {
  5. DoubleBuffered = true;
  6. }
  7. }
  8.  
  9. class CustomDataGridView: DataGridView
  10. {
  11. public CustomDataGridView()
  12. {
  13. DoubleBuffered = true;
  14. }
  15. }
  16.  
  17. typeof(DataGridView).InvokeMember(
  18. "DoubleBuffered",
  19. BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty,
  20. null,
  21. myDataGridViewObject,
  22. new object[] { true });
Add Comment
Please, Sign In to add comment