从数据库动态创建Treeview [英] create treeview dynamically from database
本文介绍了从数据库动态创建Treeview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一个表名"Group",其中包含以下字段---
parent_id:父组ID
名称:组名
status:(true/false)如果为true,则表示它包含其他子组,没有子组
subgroup_id:下一个子组ID
我的问题是,如何从此表中制作树状视图.
请...有人帮助
非常令人困惑,很棘手
电子邮件:<!-电子邮件地址已删除-由Bala!>
A table name "Group" which contains the fields---
parent_id : Parent group id
Name : name of group
status : (true/false) if true, means it contains sub-groups else, no sub-groups
subgroup_id: next subgroup id
My question is, how to make a treeview from this table.
Plz...someone help
Its very confusing, n tricky
E-mail: <!-Email address Removed - By Bala !>
推荐答案
这可能有帮助,
http://www.dotnetperls.com/treeview [ http://www.akadia.com/services/dotnet_data_reader.html [
This may help,
http://www.dotnetperls.com/treeview[^]
Apart from this, if you are not able to get data from database, then see this,
http://www.akadia.com/services/dotnet_data_reader.html[^]
一些帮助您的链接:
从数据库填充TreeView控件 [ http://stackoverflow.com/questions/361661/populate-treeview-from-database [ ^ ]
some links to help you out:
Populating a TreeView Control from the Database[^]
http://stackoverflow.com/questions/361661/populate-treeview-from-database[^]
很抱歉要说Pranit,
但是您建议的是静态树视图,m要求动态,然后从数据库中再次请求
Sorry to say Pranit,
but what u suggested is for static treeview, m asking for dynamic and again from database
这篇关于从数据库动态创建Treeview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文