• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

Treeview (Web)


I’m doing some development work on a tree view (web) control.  So far I have managed to build the tree view correctly.

The next stage is that I need to loop through the nodes and where appropriate add some more nodes in.  This will involving changing the position of some of the existing nodes.  Doing this is proving to be very hard.

I have managed to loop through all the nodes and export the value path string into a list box control.  Is it possible to create the tree view by using this data – the rational being that it’s easier to alter the data when it’s not in the tree view structure?

Another possible way would be to export in XML, alter, then recreate from the XML

Any suggestions appreciated.
1 Solution
Bob LearnedCommented:
The TreeView supports connecting to a data source that provides hierarchical data.  You could provide XML content to an XmlDataSource, and bind the data source to the TreeView.  If you need to change nodes, add them to the XML content, and re-bind the TreeView.

Walkthrough: Displaying Hierarchical Data in a TreeView Control

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now