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

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


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

Murray Brown
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.
Bob LearnedCommented:
ASP.NET has a way to bind the TreeView to a data source that supports hierarchical data.

Binding to Hierarchical Data
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thank you both for the help
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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