Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

DataGridView : Mouse scroll and down arrow button hold behave different for large num

$
0
0
In Slow Pc having Pentium processor, for DataGridView having some about 500 rows and more looks like dragging the same row, while

1.Scrolling the grid by mouse scroll bar.

2.If down arrow mark is pressed and it is hold. But this is not seen while dragging the rows with the mouse pointer.
Here is sample code
Code:

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


Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>