Treeview looses selection when clicking on another button

D

Dale Fye

I have a treeview control on one of my forms. When I click on one of the
highest level nodes, I make a set of command buttons visible for adding,
editing, or deleting at that level of the tree.

However, when I click one of these command buttons, the node that was
selected in the tree is no longer selected (highlighted). I've tried storing
the key value of the node that was selected during the click event, and then
reselecting the node by looping through all the nodes and setting the
selected property based on the value of the key, but this does not seem to
highlight the node either.

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top