How to improve painting performance of DataGridView?

后端 未结 6 832
别那么骄傲
别那么骄傲 2020-12-01 12:40

(sorry for bad English)

I have a big problem with performance of DataGridView when it re-paints.

I\'m using a DataGridVie

6条回答
  •  日久生厌
    2020-12-01 13:02

    Clean Solution without reflection is:

    public class DataGridViewDoubleBuffered : DataGridView
    {
       public DataGridViewDoubleBuffered()
       {
           DoubleBuffered = true;
       }
    }
    

    Then go to myForm.designer.cs and change a type from DataGridView to DataGridViewDoubleBuffered .

提交回复
热议问题