DataGridView控件拖动滚动条不闪问题解决

需要加几行代码:

 Type dgvType = this.DGV_staffList.GetType();
            PropertyInfo pi = dgvType.GetProperty("DoubleBuffered",
            BindingFlags.Instance | BindingFlags.NonPublic);
            pi.SetValue(this.DGV_staffList, true, null);

猜你喜欢

转载自blog.csdn.net/baidu_38995168/article/details/86631107