Vertical scrolling very slow with large grid

14 views
Skip to first unread message

AlpineRonan

unread,
Apr 4, 2014, 12:46:04 PM4/4/14
to tlist-deve...@googlegroups.com
Hi,

I'm using tlist7 to host a grid with 5000 rows and columns.  Horizontal scrolling works quite well but vertical scrolling is much slower, basically unusable.  Here's a simple VB6 example showing the problem.

Private Sub Form_Load()
    TList1.Left = 0
    TList1.Top = 0
    TList1.Redraw = False
    TList1.Grid.Cols = 5000
    TList1.Grid.Rows = 5000
    TList1.Grid.AutoSizeOptions = GRID_AUTOSIZE_ONLY_CURRENTLY_VISIBLE_CELLS
    TList1.Redraw = True
End Sub

Private Sub Form_Resize()
    If WindowState <> 1 Then
        TList1.Height = Me.ScaleHeight
        TList1.Width = Me.ScaleWidth
    End If
End Sub

Start the application and scroll the columns (horizontally)...quite fast.  Now scroll the rows (vertically)...very slow.  Is this a known issue with tlist or am I missing something to speed scrolling up.

Thanks for your help.

 

Bennet-Tec Staff

unread,
Apr 4, 2014, 1:56:46 PM4/4/14
to tlist-deve...@googlegroups.com

The slow scrolling is due to the huge number of columns.    
TList is far better at dealing with huge row counts than with huge column counts.

Depending on your application you may want to try instead to use TList's Virtual Data mode
which will give you faster response and take far less memory when dealing
with such a large number of columns.     It will still be very slow with 5000 columns 
of data, but definitely should be better.   

I hope this is helpful.

Note - for formal technical support, 
      Go to           www.Bennet-Tec.com 
       => Click on Support
       => Click on "Submit Support Question

            ( This Google Groups forum here is not for formal support 
               and is only very infrequently reviewed by Bennet-Tec, 
               It is rather for User to User communications )


Also you may want to look into the newer TList 8 OCX edition.


========================
 ============================
 
Reply all
Reply to author
Forward
0 new messages