在asp.net中填充treeview [英] Populate treeview in asp.net

查看:95
本文介绍了在asp.net中填充treeview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过vb.net使用asp.net的TreeView

当我单击它时,有一个TreeNodePopulate事件或它的孩子
相关物品来了,当点击它的孩子时,我该如何携带它的物品

我对treeview的要求是
1)祖父---> 2)父亲---> 3)儿童

当我单击ON时,大父亲Treeview的孩子通过使用
完美地来到了 TreeNodePopulate事件,当我单击它的子项时,第2号((父亲的名字))如何带它的子项

只要告诉我一件事,如果我使用
"TreeNodePopulate事件"如何确定祖父是单击还是父亲

I am working With TreeView of asp.net with vb.net

There is a TreeNodePopulate Event When I clik on it the child of it or It
Relevant Items Come and when click on its child it how can i bring its item

my requirement of treeview is
1)GrandFather ---> 2)Father ---> 3)Child

When I click ON Grand Father Treeview It child comes Perfectly by using
TreeNodePopulate event and when i click on its childs whicj is no 2 ( (name Father) how to bring its child

Just tell me 1 thing If i use
"TreeNodePopulate event" How can i defferntiate Grandfather is click or father

推荐答案

只要告诉我1件事,如果我使用
"TreeNodePopulate事件"如何确定祖父是单击还是父亲

treeview的节点级别会告诉您.如果是0级,则单击祖父"节点.如果是第一级节点,则为父亲,第二级则为子节点.
Just tell me 1 thing If i use
"TreeNodePopulate event" How can i defferntiate Grandfather is click or father

Node level of the treeview would tell you that. If it''s 0th level, then Grandfather node clicked. If 1st level node then a father and 2nd level then child.


这篇关于在asp.net中填充treeview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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