I have a tree view with several levels of nodes.
e.g.
Level 1 Group 1
Level 2 Item 1
Level 2 Item 2
Level 1 Group 2
Level 2 Item 1
I want to be able to expand and collapse all levels - no problem, but I only want to be able to select on the Items - in this case all Level 2 nodes.
e.g. if I click on Level 2 Item 2, it is highlighted in Blue, but not if I click on Level 1 Group 1.
Can't seem to find a way to prevent all items being highlighted when I click on them.
Anyone know of a simple way of doing this?
One method I have tried was to save the last Item clicked and highlighted and then reselect that item if I click on a different group. This does work, but unfortunately the treeview scrolls until the previous highlighted item is in view - which I don't want - don't want any scrolling when I click any group or item.
Hope this is clear and thanks for any ideas.