In the NodeMouseClick event I’m trying to load some objects from the Node.Tag. Before I do so I check e.Node.IsSelected. When run regularly IsSelected is false….if I stick a break point around there and check e.node.Isselected, the value changes on me and becomes true. Why?
In the NodeMouseClick event I’m trying to load some objects from the Node.Tag. Before
Share
The NodeMouseClick event is raised before the selection actually changes. (When you click on the same node twice, the second time e.Node.IsSelected will certainly have been true.)
You could try handling the AfterSelect event, although that will also be raised when using the keyboard to navigate the treeview, which may even be better for your purposes.