Re: Virtual grid

From: Bob (anonymous_at_discussions.microsoft.com.invalid)
Date: 07/01/04


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



Relevant Pages

  • 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)
  • bind array to Infragistics Datagrid
    ... I am trying to bind an array to an Infragistics grid. ... to the array with no problem, but I cannot seem to get the columns to display ...
    (microsoft.public.dotnet.languages.vb)
  • databind a grid with linkbutton
    ... I am binding a grid to an array of the System.IO.FileInfo class. ... to display the Name column as Link Button and its target should be the Full ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: help urgent
    ... Declare a dynamic array of stuctures. ... > in the event handler should display an OpenFileDialog allowing the user ... load the date from each array member into the combo box. ...
    (microsoft.public.vb.general.discussion)
  • Re: pass an array throuh a function
    ... >The array would record the data from the user from one function.AND another ... >once the user is done and send it to the display function. ... your displayfunction is going through a loop. ... int count; ...
    (alt.comp.lang.learn.c-cpp)