Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a treeview with a umber of nodes..
Whenever i select a node i am not able to select the same node again..
That is nothing happens when i click on the the currently selected node...
How can this be resolved?
Posted

1 solution

Of course, if you click on an already selected node, node selection/unselection events are not invokes, because it would not make any sense, as the selection is not changed. There is nothing to "resolve".

Even though you can detect this click by handling mouse events, I would advise you to avoid it. Better follow the reasonable existing design. Failure to follow it would be very confusing for your users.

—SA
 
Share this answer
 
Comments
Member 9644631 6-Mar-13 6:33am    
But I require that.. As it is the need of client
Sergey Alexandrovich Kryukov 6-Mar-13 11:24am    
Not clear. Require what?.. I already answered what you can do, but you should not do it.
You cannot say "I require" if you don't have good justification for it. You are free to ignore my advice and make harm. This is what I'm sure about, you decide...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900