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

时间:2021-02-14 15:51:01

 

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