This commit is contained in:
liang123456a
2025-09-04 11:27:18 +08:00
parent a1301ee8ce
commit 1878f24679

View File

@@ -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);