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

 

            customerBindingSource.DataSource = northwindDataContent.Customers;
            Type type = customerDataGridView.GetType();
            PropertyInfo pi = type.GetProperty("DoubleBuffered",
                BindingFlags.Instance | BindingFlags.NonPublic);
            pi.SetValue(customerDataGridView, true, null);
posted @ 2012-06-19 17:06  William Jiang  阅读(4918)  评论(2编辑  收藏  举报