Re: Virtual grid
From: Bob (anonymous_at_discussions.microsoft.com.invalid)
Date: 07/01/04
- Next message: Bob: "Re: Icon library in EXE files"
- Previous message: Ken Halter: "Re: Count Parent's form(s)"
- In reply to: Norm Cook: "Re: Virtual grid"
- Next in thread: DNagel: "Re: Virtual grid"
- Reply: DNagel: "Re: Virtual grid"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 09:44:53 -0700
This won't quite work because I am keeping the numbers as double, and yet I
do not display all the digits after the decimal point. I leave that choice
to the user, similar to excel. The user may want to show 2 digits, and then
a few minutes later may want 6. So I have to keep the exact data somewhere.
Besides, if I have numbers of type double, each element of the array only
takes 8 bytes, whereas if I load it directly to the grid, it becomes a
string, which then each digit takes one byte, and possibly for each element
that can be 20 to 25 bytes. Not very feasible. This is my biggest concern
for keeping the array, the accuracy of data, and size of memory. Any
suggestions?
Thanks;
Bob
"Norm Cook" <normcookNOSPAM@cableone.net> wrote in message
news:10e86i0ja54j542@corp.supernews.com...
>
> If I understand correctly, just ditch the array & load the data directly
to the grid. You can refer to/retrieve data from the grid
> as easily as from the array. Populating the grid from a file will be
somewhat slower than from an array (memory), but that's the
> price you pay. If the array has to exist for other reasons, then so be it
and don't worry about the duplication. BTW, you can
> speed up populating the grid by setting its Visible property to false
while loading. If the amount of data is so large that it
> causes a bottleneck, then you may want to rethink your design.
>
> "Bob" <anonymous@discussions.microsoft.com.invalid> wrote in message
news:eOGymisXEHA.2364@TK2MSFTNGP12.phx.gbl...
> > Hello all:
> >
> > I was wondering if anyone knows of any place where I can get the code
for
> > free for a virtual grid (similar to the virtual listview on VBVision).
I
> > have a large matrix or 2D array. Should the user needs to see the
matrix, I
> > want to display it in a flexgrid control. Of course I can do it with
the
> > existing grid controls in VB, but I would be duplicating the
information.
> > Because of this, the memory is doubled, and the speed is very slow.
Since I
> > already have the information in memory in an array, all I want to do is
> > display it without the other over heads.
> >
> > Thanks for your help.
> >
> > Bob
> >
> >
> >
>
>
- Next message: Bob: "Re: Icon library in EXE files"
- Previous message: Ken Halter: "Re: Count Parent's form(s)"
- In reply to: Norm Cook: "Re: Virtual grid"
- Next in thread: DNagel: "Re: Virtual grid"
- Reply: DNagel: "Re: Virtual grid"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|