Jesús Reyes A. schrieb:

----- Original Message ----- From: "Seth Grover" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, November 05, 2006 8:42 AM
Subject: Re: [lazarus] issues with virtual treeview... ideas or alternatives?


After some testing, I ran into the real problem with using a TDrawGrid
like was suggested. For small data sets its fine, but when I tried to
do something big (5 million rows with 5 columns each) the memory usage
shot through the roof (80 percent of my system resources). Writing the
same test app in Delphi using a TListView with the OwnerData set to
"true" doesn't exhibit that problem. I haven't examined the internals
of these components, but it looks to me like with the TDrawGrid memory
has got to be allocated for each cell anyway, and with the TListView
in virtual mode memory is only allocated when it is needed.


Five millions are a lot of rows, at the moment you would have to make a specialized grid, something like dbgrid, that uses only the visible rows to show all information.
With VT this schould be handleable, but the scrolling Bug must be fixed first for an Grid. Maybe i have some sparetime in next weeks and can take a look again at this issue.

Christian

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to