Winform中DataGridView横向拖动滚动条时闪烁问题很严重的处理办法

原文链接:http://www.cnblogs.com/WilliamJiang/archive/2012/06/19/2555023.html

 

            customerBindingSource.DataSource = northwindDataContent.Customers;
            Type type = customerDataGridView.GetType();
            PropertyInfo pi = type.GetProperty("DoubleBuffered",
                BindingFlags.Instance | BindingFlags.NonPublic);
            pi.SetValue(customerDataGridView, true, null);

转载于:https://www.cnblogs.com/WilliamJiang/archive/2012/06/19/2555023.html

上一篇:c#-无法滚动到datagridview中的单元格底部


下一篇:C#-水平​​滚动条消失,设置最后一个要填充的列大小