Horrible redraw performance of the DataGridView on one of my two screens

后端 未结 9 1954
情话喂你
情话喂你 2020-11-28 03:30

I\'ve actually solved this, but I\'m posting it for posterity.

I ran into a very odd issue with the DataGridView on my dual-monitor system. The issue manifests its

9条回答
  •  感动是毒
    2020-11-28 03:58

    For people searching how to do it in VB.NET, here is the code:

    DataGridView1.GetType.InvokeMember("DoubleBuffered", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.SetProperty, Nothing, DataGridView1, New Object() {True})
    

提交回复
热议问题