如何查找子节点值 [英] How to find child node values

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

问题描述

int mSelectNode = int.Parse(tvHierarchyView.SelectedNode.Value);
                   int mParentSelectNode = int.Parse(tvHierarchyView.SelectedNode.Parent.Value);

// populate treeview again i am binding trview 

tvHierarchyView.FindNode(mParentSelectNode.ToString()).Expand();
                    tvHierarchyView.FindNode(mParentSelectNode.ToString()).Selected = true;
i am getting error object reference error i am getting 

推荐答案

对象引用错误是因为FindNode方法还没有返回节点。



尝试找到节点作为链接



http://forums.asp.net/t/1275399.aspx [ ^ ]
Object reference error is because of the FindNode Method has not returned the Node.

Try to find the node as the link

http://forums.asp.net/t/1275399.aspx[^]


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

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