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!

binding data to a treeview

Status
Not open for further replies.

tekkerguy

Programmer
Nov 16, 2005
196
US
I have a list of objects, and each object contains an object below it.

(i.e. object library contains a collection of book objects, which in turn contain a collection of page objects)

I've used the objects hierarchy to create a treeview, which properly creates a tree based on the object hierarchy.

What I now want to do is have a user select a page, and based on the page's id, book id and library id, write information to an xml file.


how do I bind an index to a treenode, along with the text, so that I can reference back to the object itself? is there such a property?
 
If i understand you correctly I believe that the TreeNodes Tag property is what you are after. Any Object derived type can be assigned to this property.
O.B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top