J
Jeff Gaines
I need to show more that 1,000,000 nodes in a .Net forms tree view control
i dont think its a good idea to load the whole data at once in the tree
view
of course the data is load a from xml stream the load time is very fast
but dumping it onto the treeview dosent sound well
any better idea?!?!
i thought maybe to use treeview the way windows explorer (when you click +
sign beside a node that is actually a folder; the contents are read and
added to the treeview) but i dont how to get the tree view somthing like
that (of course i dont expect to accoplish it by changing a property value
or writting 1 or 2 line of code)
i dont have any idea what to do?
any helper class in .Net? appropriate event handler? any kind of data
binding to the tree view ? or ....
That's the way to do it - assuming your data fits into a parent/child type
relationship. Trap the expand event and load the children from there.
I have put an example of a file manager using this technique on the
CodeProject at:
http://www.codeproject.com/cs/files/JFileManager31.asp
if it's any help.