Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataGridView RowCount setting very slow
Message
 
 
To
28/10/2008 06:23:08
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01357256
Message ID:
01357873
Views:
12
Andrus,

I didn't get that from the help topic on the assign of RowCount... obviously it's doing something if it takes 8 seconds. Is it a linear or exponential time? How long do 10, 100, 1000, 10000 and 100000 rows take?

As far as faster goes do you really a million virtual rows at once? Can you just actually allocate them in blocks of say 1000 as you need?

>Your question is based on the wrong assumtotions.
>DataGridView VirtualMode is designed to *show* one screenful from large *virtual* data efficiently.
>OnCellValueNeeded is called whenever data is required.
>RowCount assignment line does *not* create day objects.
>
>Task Manager shows that this code does not require any measurable about of RAM if running.
>Here is better samle to reproduce this issue:
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform