How do I override Microsoft's datagridview to allow back buffering in VB.NET?

前端 未结 4 1281
旧巷少年郎
旧巷少年郎 2021-02-08 07:32

My datagridview flickers and is very slow while loading. I reflectored the datgridview from Microsoft and discovered that there is a back buffer property which is not visible f

4条回答
  •  孤独总比滥情好
    2021-02-08 08:15

    How about trying a List and adding it programmatically to a multiline textbox. That is very fast and efficient.

     Dim tbox As New TextBox
    
        Dim bobs As New List(Of String)
    
        bobs.Add("Williams")
        bobs.Add("Stephens")
        bobs.Add("Thomas")
        bobs.Add("Brown")
        bobs.Add("Knauff")
    
        For Each str As String In dinosaurs
          tbox.Text &= str & vbNewLine ' &= ensures you add the str not overwrite the previous data/vbnewline works as a cr(carriage return) and an lf(line feed)'
        Next
    

提交回复
热议问题