-
quick treenode help
how do i call a function after a treenode has been edited? the node.AfterLabelEdit handle works, but it dosn't update the node.text property before the function executes, so i can't work with the changes the user made...
also, is there a way to set a node as the selectednode when it is expanded. as it is, nodes can be expanded by clicking on the little plus sign and they expand, but they don't automaticaly get selected. if i could get the node that called the .afterexpandhandle, that would solve the problem....
-
Hi.
I don't know about the first, but in the AfterExpand event you could try something like this : Treeview1.SelectedNode=e.Node
That should do the trick ;)
-
When the AfterLabelEdit event fires, you need to check the "e" object it passes back for the info. Just read "e.Label()" to get the new text the user has entered.
You get all the info from the passed event arguments for all controls.