防止DataGridview闪烁

在Load事件中加入

typeof(DataGridView).InvokeMember("DoubleBuffered", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty, null, this.dataGridView1, new object[] { true });

 

posted @ 2017-06-05 10:35  西枫叶落  阅读(323)  评论(0编辑  收藏  举报