dataGridView双缓冲双buffer代码

在form_load方法中添加一下代码  双缓冲:

  Type type = dataGridView_items.GetType();
             System.Reflection.PropertyInfo pi = type.GetProperty("DoubleBuffered",
             System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
             pi.SetValue(dataGridView_items, true, null);

 

你可能感兴趣的