diff --git a/WinFormsApp1/FastDataGridView.cs b/WinFormsApp1/FastDataGridView.cs index a87c887..f5c8a2e 100644 --- a/WinFormsApp1/FastDataGridView.cs +++ b/WinFormsApp1/FastDataGridView.cs @@ -10,7 +10,7 @@ public class FastDataGridView : DataGridView typeof(DataGridView) .GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic) .SetValue(this, true, null); - + this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true);