Hi,
I've got a complex hierarchy and I'd like to see if it's possible to use the tree control to model it without having to program a bunch of code.
I've got a class, call it "foo". A "foo" can have a collection of "foo"s, as well as collections of "bar"s and "whatsit"s. I'd like to get the tree to model a foo as follows:
- Foo 1
- Foos
- Foo 3
- Foos
- Bars
- Bar
- Bar
- Whatsits
- Foo 3
- Bars
- Bar
- Bar
- Whatsits
- Whatsit
- Whatsit
- Foos
- Foo 2
- Foos
- Foo 4
- Foos
- Bars
- Whatsits
- Foo 4
- Bars
- Bar
- Whatsits
- Whatsit
- Foos
So basically, anytime I bind an item of type "foo", it needs to bind with 3 child nodes (foos, bars & whatsits). Expanding a foo node should repeat the heirarchy; expanding a bar or whatsit node gets me the collection of those items.
Thanks!