如何获取所选子节点的值 [英] how to get the value of the selected child node

查看:95
本文介绍了如何获取所选子节点的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在TreeView中获取所选子级[0]节点的值?

How to get the value of the selected child[0] node in TreeView?

 parent
|->Child  index[0]
   |->Sub Child
       |->Child (for sub child)
 parent
|->Child  index[1]
   |->Sub Child
       |->Child (for subchild)



treeView1.SelectedNode仅返回父节点选择的值,但是当我要选择子节点时我想访问该子节点,然后我要在选择的节点之后添加子字段.

我想获取子项的值,然后添加子字段.

如何将子子节点添加到树中



`treeView1.SelectedNode` returns only parent node selected value but I want to access the child when I will be select the child node then I want to add the subfield after the selected node.

I want to get the value of the child then add the subfield.

how to add the sub child nodes into the tree

推荐答案

注意树中任何位置的任何节点都具有Nodes集合,对吗?这意味着任何节点都可以有子节点!提示,提示!
Notice that any node anywhere in the tree has a Nodes collection, correct? That means that any node can have child nodes! Hint, hint!


这篇关于如何获取所选子节点的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆