I'm trying to create a treeview similar to the accounts view in Outlook.
Essentially I'm looking for the following structure.
1 First Account name
1.1 Inbox
1.2 Deleted Items
1.3 Sent Items
2 Second Account Name
2.1 Inbox
2.2 Deleted Items
2.3 Sent Items
The number of accounts (root nodes) is variable according to the user.
The number of leaf nodes is constant.
If possible, I'd like to restrict the selection of the root elements, there's no point selecting one of those, they don't "do" anything.
Obviously, I also need to be able to track which leaf node was selected.
Any help would really be appreciated, I'm going round in circles with this one.
(I have tried to follow Josh Smith's article on CodePlex but that's only added to the confusion for now).
Thanks,
CA.