Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Law Law is offline
external usenet poster
 
Posts: 9
Default TreeView Control help pretty please.

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default TreeView Control help pretty please.

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   Report Post  
Posted to microsoft.public.excel.programming
Law Law is offline
external usenet poster
 
Posts: 9
Default TreeView Control help pretty please.

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   Report Post  
Posted to microsoft.public.excel.programming
Law Law is offline
external usenet poster
 
Posts: 9
Default TreeView Control help pretty please.

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use TreeView control Dennis Excel Programming 1 March 1st 06 06:33 PM
Treeview Control Manfred Senn Excel Programming 4 May 12th 05 08:40 PM
Need help with Treeview control ?? Dan Thompson Excel Programming 5 December 9th 04 10:54 PM
TreeView Control Andy Excel Programming 0 January 28th 04 12:01 PM
TreeView control Mike Caputo Excel Programming 3 November 14th 03 09:35 PM


All times are GMT +1. The time now is 07:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"