启用dataGridView的双缓冲即可解决,方法如下:
Type type = dataGridView.GetType(); PropertyInfo pi = type.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic); pi.SetValue(dataGridView, true, null);标签:C#,dataGridView,BindingFlags,DataGridView,pi,type,闪烁 From: https://www.cnblogs.com/han-zhonggong/p/16699359.html