在form_load方法中添加一下代码 双缓冲:
1 Type type = dataGridView_items.GetType(); 2 System.Reflection.PropertyInfo pi = type.GetProperty("DoubleBuffered", 3 System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); 4 pi.SetValue(dataGridView_items, true, null);
时间: 2024-11-04 22:49:16