Custom Class for Tree Generation

copyPasteGhost
copyPasteGhost used Ask the Experts™
on
I would like to build a tree with a potential for n levels, to represent the various departments at our organization.

I would like to know how to build a Hierarchical object C# that will allow me to build the tree structure and then I'll just bind it to the tree view (the same way I would build a employee class and then bind it to the listview)

Is something that can currently be done?

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
interesting idea...
That might work better. I'll explore that and get back to you.

Author

Commented:
The problem that I'm seeing with going the XML route is I need to pre-define the tree structure. (right?)

I need a dynamic solution, as I'm not sure how deep the tree will be. It seems like a big shortfall of this way of binding to the tree.

Am I missing something?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial