My question is about adding new node to the selected node. For example I have my treeview nodes and when I selected 1 node and click button (addCategory) I have to add a node to the same level. If I selected 1 node and click button (addSubCategory) I have to add a node to the sub level.
My question is about adding new node to the selected node. For example I
Share
in fact it could change a bit if you are in windows forms or web forms I guess but pseudo-code for what you ask is this:
AddCategory
AddSubCategory
of course check SelectedNode and Parent for
nullbefore doing this 😉