Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
Was contemplating about inserting ca 4000 nodes with a hierarchy of ca 6 levels inside a treeview control (I'm intending to use Microsoft TreeView control version 6). The below is an example of my data set which lies within an excel sheet starting at range A1 (data set contains headers): NodeID ¦ NodeDescription ¦ ParentID N0000 Papa Smurf N0001 Smurfette N0000 N0002 Hefty Smurf N0000 N0003 Baby Smurf N0002 .... The NodeDescription is to be used as the name displayed for the node. I figure to do this efficiently I need some kind of special sort function. Any suggestions or fully working code :) would be greatly appreciated. Hope to hear from someone soon. Thanks for reading. Lars. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Lars,
Ken Puls has a tutorial here http://proofficedev.com/blog/2007/03...icrosoft-excel Ed Ferrero www.edferrero.com "Law" wrote in message oups.com... Hi All Was contemplating about inserting ca 4000 nodes with a hierarchy of ca 6 levels inside a treeview control (I'm intending to use Microsoft TreeView control version 6). The below is an example of my data set which lies within an excel sheet starting at range A1 (data set contains headers): NodeID ¦ NodeDescription ¦ ParentID N0000 Papa Smurf N0001 Smurfette N0000 N0002 Hefty Smurf N0000 N0003 Baby Smurf N0002 .... The NodeDescription is to be used as the name displayed for the node. I figure to do this efficiently I need some kind of special sort function. Any suggestions or fully working code :) would be greatly appreciated. Hope to hear from someone soon. Thanks for reading. Lars. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ed
I checked out that link but can see straight away that I will need some sort of quicksort function to process the 4000 nodes with ca a hierarchy of 6 levels. Currently with the examples provided I understand that I would have to loop through every node to find a child node and continue recursively. However was hoping that someone could post me somecode of a treeview control that works efficiently or semi-efficiently with a large data set or alternatively give me hints of how to go about it? Thanks L On May 1, 1:13 pm, "Ed Ferrero" wrote: Hi Lars, Ken Puls has a tutorial herehttp://proofficedev.com/blog/2007/03/13/using-a-treeview-control-in-m... Ed Ferrerowww.edferrero.com "Law" wrote in message oups.com... Hi All Was contemplating about inserting ca 4000 nodes with a hierarchy of ca 6 levels inside a treeview control (I'm intending to use Microsoft TreeView control version 6). The below is an example of my data set which lies within an excel sheet starting at range A1 (data set contains headers): NodeID ¦ NodeDescription ¦ ParentID N0000 Papa Smurf N0001 Smurfette N0000 N0002 Hefty Smurf N0000 N0003 Baby Smurf N0002 ... The NodeDescription is to be used as the name displayed for the node. I figure to do this efficiently I need some kind of special sort function. Any suggestions or fully working code :) would be greatly appreciated. Hope to hear from someone soon. Thanks for reading. Lars. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ed
I checked out that link but can see straight away that I will need some sort of quicksort function to process the 4000 nodes with ca a hierarchy of 6 levels. Currently with the examples provided I understand that I would have to loop through every node to find a child node and continue recursively. However was hoping that someone could post me somecode of a treeview control that works efficiently or semi-efficiently with a large data set or alternatively give me hints of how to go about it? Thanks L On May 1, 1:13 pm, "Ed Ferrero" wrote: Hi Lars, Ken Puls has a tutorial herehttp://proofficedev.com/blog/2007/03/13/using-a-treeview-control-in-m... Ed Ferrerowww.edferrero.com "Law" wrote in message oups.com... Hi All Was contemplating about inserting ca 4000 nodes with a hierarchy of ca 6 levels inside a treeview control (I'm intending to use Microsoft TreeView control version 6). The below is an example of my data set which lies within an excel sheet starting at range A1 (data set contains headers): NodeID ¦ NodeDescription ¦ ParentID N0000 Papa Smurf N0001 Smurfette N0000 N0002 Hefty Smurf N0000 N0003 Baby Smurf N0002 ... The NodeDescription is to be used as the name displayed for the node. I figure to do this efficiently I need some kind of special sort function. Any suggestions or fully working code :) would be greatly appreciated. Hope to hear from someone soon. Thanks for reading. Lars. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use TreeView control | Excel Programming | |||
Treeview Control | Excel Programming | |||
Need help with Treeview control ?? | Excel Programming | |||
TreeView Control | Excel Programming | |||
TreeView control | Excel Programming |