树视图中的子节点单击事件 [英] child node click event in treeview

查看:96
本文介绍了树视图中的子节点单击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在树状视图中,我从后端即sqlserver 2005中检索了子节点和父节点的详细信息,现在要做的任务是,当我单击子节点时,我应该按以下方式显示页面或面板我在树状视图的侧面...单击任何子节点,我应该显示其对应的页面..pls帮帮我...... C#编码

in the treeview ,i have reterived the details of child node and parent node from my backend i.e sqlserver 2005,now the task which i have to do is,when i click the child node ,i should display the page or panel by my the side of treeview...clicking of any child nodes ,i shoud display the page of its corresponding..pls help me out......C# coding

推荐答案

处理TreeView的AfterSelect事件,并通过e.Node参数检索相应的节点.
然后,您可以使用该信息显示更多信息.
抱歉,但是在不了解您需要显示的内容,TreeNode的内容等等的情况下,我不能再给您任何东西了!
Handle the AfterSelect event for the TreeView, and retrieve the appropriate node via the e.Node parameter.
You can then use that information to display further information.
Sorry, but without knowing a lot more about what you need to display, what your TreeNodes hold, and so forth, I can''t give you any more!


这篇关于树视图中的子节点单击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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