Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Challanging Tree View Problem

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey guys,

I have a tree view. When I load it, it has 200 + nodes added to it, and is displayed with 2 levels expanded. Since this tree view is a userinterface for security settings, I have checkboxes viewable on the treeview.

What i'd like to do is when a button is clicked, code cycles through the nodes, checks if the checkbox is checked, and saves an ID attribute of hte node. Here's my problem: The TreeView responds that it only has ONE (1) node! But I can traverse the tree to all of them that I added.

Any thoughts on why its doing this, and on how I could accomplish my task?

Thanks guys,
:)

Jack
 
I've never used them before, but I'd assume using them to be like using an XML parser - you'd write a recursive function that processes all children of the current node.

I assume it's got an attribute like childNodes or some such.. codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top