在具有 Pentium 处理器的慢速 PC 中,对于具有大约 500 行和更多行的 DataGridView 看起来像拖动同一行,而
通过鼠标滚动条滚动网格。
如果按下向下箭头标记并保持。但这在用鼠标指针拖动行时看不到。
这是示例代码。
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For i = 0 To 10
DataGridView1.Columns.Add("Column" & i, "Column" & i)
Next
DataGridView1.Rows.Add()
For i = 1 To 500
DataGridView1.Rows.Add()
Next
For i = 1 To 500
For j = 0 To 2
DataGridView1.Rows(i).Cells(j).Value = (1000 + i) & "_" & j & "A"
Next
Next
End Sub
End Class