如何将数据库绑定到树视图控件 [英] how to bind the data database to treeview control
问题描述
嗨.....
我正在设计网页,在这个节点中显示树视图控件是
祖父母,父,子。和sql中的3个数据库表祖父母,父母,子女。此值绑定到treeview控件。
以及何时单击祖父节点父节点值(名称,描述,图像,下拉列表(激活,非活动)....等)绑定到listview控件或datagrid control.same,单击父节点子值(名称,描述,图像,下拉列表(激活,非活动)....等)显示在列表或数据网格中..
请让我知道答案非常紧急< /strike>.....
hi.....
am designing webpage in that am displaying treeview control in this nodes are
grandparent,parent,child.and 3 database tables in sql grandparent,parent,child. this values bind to the treeview control.
and when am click the grandparent node parent node values(name,description,image,dropdownlist(activ,inactive)....etc) bind to the listview control or datagrid control.same as click the parent node child values(name,description,image,dropdownlist(activ,inactive)....etc) display in list or datagrid ..
please let me know the answer very urgent.....
推荐答案
这是一篇优秀的MSDN文章。 在TreeView控件中显示分层数据 [ ^ ]
Here is an excellent MSDN article. Displaying Hierarchical Data in a TreeView Control [^]
启动此处 [ ^ ]。
这篇关于如何将数据库绑定到树视图控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!