Re: Virtual grid

From: Norm Cook (normcookNOSPAM_at_cableone.net)
Date: 07/01/04


Date: Thu, 1 Jul 2004 09:07:27 -0500


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
>
>
>



Relevant Pages

  • Re: memory leak problem with arrays
    ... change the array as determined by the transition rules is never freed. ... Are you aware that slicing shares memory? ... a grid to do the automata calculations on, ... even though it's only a tiny slice of it. ...
    (comp.lang.python)
  • Re: memory leak problem with arrays
    ... change the array as determined by the transition rules is never freed. ... Are you aware that slicing shares memory? ... a grid to do the automata calculations on, ... even though it's only a tiny slice of it. ...
    (comp.lang.python)
  • Re: Virtual grid
    ... do not display all the digits after the decimal point. ... Besides, if I have numbers of type double, each element of the array only ... to the grid. ...
    (microsoft.public.vb.controls)
  • Re: MSHFlexgrid displayed value
    ... data, one for my array, and one for the grid, which means using double the ... >> get the format string, and display the value to the user. ...
    (microsoft.public.vb.controls)
  • Re: How do I use a parameter/variable/string literal as an identifier?
    ... Not an actual grid, just a bunch of text boxes ... corresponding member of a boolean array (there is one array for each ... but I would rather learn a new language ...
    (comp.lang.pascal.delphi.misc)