huge amount of data in a control

huge amount of data in a control

Post by Marce » Sat, 02 Feb 2008 05:59:29


Hi,

Sorry for cross-posting, but in the other group nobody seems to know.

How can I create/use a control to display a huge amount of data from a
stream without actually loading all this data? Can I use the TextBox
control with some kind of custom data binding, or should I create a
custom usercontrol and handle the scroll events myself?

Is there any control that supports SetScrollRange of SetScrollInfo
equivalent functionality? I could not find any examples on the web or
usenet.

TIA,
-- Marcel
 
 
 

huge amount of data in a control

Post by Andrej Toz » Fri, 08 Feb 2008 16:42:33

Hi Marcel,

not sure if this is what you're after, but have you looked into
DataGridView's VirtualMode?

Andrej

 
 
 

huge amount of data in a control

Post by Marce » Sat, 09 Feb 2008 00:21:11


Hi Andrej,

Thanks for your response. The Virtualmode for the DataGridView appears
to be what I'm looking for, but in the wrong control.

I'm trying to create a hexviewer control. So, it would need to read
from really big files, convert the data to hex and display it in a
(TextBox) control. It would only have to show a very small portion of
the file at a time.

The best approach I have so far is to create a usercontrol composed of
a TextBox control and HScrollBar and VScrollBar controls.

-- Marcel