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

VB.net/ASP.net building Organizational Hierarchy in TreeView with Department selection

Hi

I store the hierarchical organizational data for a company in a table shown in the image below.
I use a recursive method to add the nodes based on the "node address" column.
I need to add in functionality to exclude certain departments. This will interfere with my code in general and make my build disjointed. Can anyone suggest a better way to do this. Thanks

1
0
Murray Brown
Asked:
Murray Brown
2 Solutions
 
Shaun KlineLead Software EngineerCommented:
Are the departments you need to exclude at the lowest level of the heirarchy or part of a branch in the tree, consider excluding them when you retrieve your data.
0
 
Bob LearnedCommented:
ASP.NET has a way to bind the TreeView to a data source that supports hierarchical data.

Binding to Hierarchical Data
http://msdn.microsoft.com/en-us/library/ms178367(v=vs.100).aspx
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thank you both for the help
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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