Control that displays LOTS of data without taking all memory

  • Thread starter Thread starter VMI
  • Start date Start date
V

VMI

Is there a Windows control that will let me display lots of data (80MB of
data in ascii file) without taking all the memory? I tried it with a
datagrid but its datasource (in my case, a datatable) must be stored to
memory in order to display it. I also tried with a listview and I thought it
would've worked but I also noticed that the application's memory usage kept
on rising (similar to the datagrid) to the point that Windows' virtual
memory popup would be displayed.
Is there any control that will let me just display data without having to
store it in memory so that no matter how much data I need to display, the
memory usage will remain more or less the same?

Thanks.
 
VMI,

While Adam's suggestion is a good one, I would really ask if you need to
display all 80 MB of data at one time? Since it is data in a tabular
format, I can't imagine that a human could ever take it all in at once.

I really think that in this case (and others like this), the workflow
and interface needs to be redesigned to be more efficient.
 
What's the difference between the MS Listview and this listview? I don't
know if this helps, but we had a C++ application that did the same thing
(with a listview) but its memory never rose above a certain amount, no
matter how much data was loaded. Is the windows listview different?


Adam Clauss said:
Not sure if you need multiple columns, etc, but for a plain "List Box" this might do what you need:

http://www.vbaccelerator.com/home/NET/Code/Controls/ListBox_and_ComboBox/VLi
stBox/article.asp

You might also try:
http://www.windowsforms.com/ControlGallery/ControlDetail.aspx?Control=214&ta
bindex=9

(I googled for "virtual listview") I knew the concept from C++/MFC, so
figured there had to be a way to do it in C#.
 
When I first started writing the application, we all assumed (including the
client) that the files to load weren't going to be that big. So we decided
to do it like this. After we finish everything (and the deadline is almost
approaching), we're told that the files are HUGE. Since we're pretty short
on time, I thought that the second best thing to do was to display the data
in a control that doesn't load everything into memory.


Nicholas Paldino said:
VMI,

While Adam's suggestion is a good one, I would really ask if you need to
display all 80 MB of data at one time? Since it is data in a tabular
format, I can't imagine that a human could ever take it all in at once.

I really think that in this case (and others like this), the workflow
and interface needs to be redesigned to be more efficient.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

VMI said:
Is there a Windows control that will let me display lots of data (80MB of
data in ascii file) without taking all the memory? I tried it with a
datagrid but its datasource (in my case, a datatable) must be stored to
memory in order to display it. I also tried with a listview and I
thought
it
would've worked but I also noticed that the application's memory usage kept
on rising (similar to the datagrid) to the point that Windows' virtual
memory popup would be displayed.
Is there any control that will let me just display data without having to
store it in memory so that no matter how much data I need to display, the
memory usage will remain more or less the same?

Thanks.
 
VMI said:
What's the difference between the MS Listview and this listview? I don't
know if this helps, but we had a C++ application that did the same thing
(with a listview) but its memory never rose above a certain amount, no
matter how much data was loaded. Is the windows listview different?


By default, no it shouldn't be different. You had to manually setup a list use a "virtual" datasource (instead of loading
everything at once) in C++ as well.
 
Back
Top