问题描述
以下是清晰的说明.
我正在使用treeview并还绑定了数据关系.
但是,我在数据关系中遇到错误.我删除了代码,我想使用新代码.
我有3张桌子
表格:A(栏:FamilyID,FmailyName)
---------
数据低于
-------------
1 A
表格:B(列:FamilyID,LocationID,LocationName)
---------
数据低于
-------------
1 1 Singhur
1 2拉姆布尔
1 3 Rajpat
表格:C(列:LocationID,PlaceID,PlaceNameName)
----------
数据低于
-------------
1 1 AAA
1 2 BBB
1 3 CCC
2 4 DDD
2 5 EEE
我的总体浏览数据如下
------------------------------
FamilyID FmailyName LocationID LocationName PlaceID PlaceNameName
-------- ---------- ---------- ------------ ------- --- ----------
1 A 1 Singhur 1 AAA
1 A 1 Singhur 2 BBB
1 A 1 Singhur 3 CCC
1 A 2 Rampur 4 DDD
我想在树状视图中显示我的数据,如下所示.
A
| ____ Singhur
| ____ AAA
| ____ BBB
| ____ CCC
____Rampur
我想动态显示在树视图中的上述格式..
该怎么做..?
请帮助.我正在尝试最后5个小时....
Hi,
Below is the clear description.
I am using treeview and also binding with data relation.
But, i am getting error in the data relations. i am deleted the code and i want to use new code..
I have 3 tables
Table :A (Column : FamilyID,FmailyName)
---------
Data is below
-------------
1A
Table :B (Column : FamilyID,LocationID,LocationName)
---------
Data is below
-------------
11Singhur
12Rampur
13Rajpat
Table :C (Column : LocationID,PlaceID,PlaceNameName)
----------
Data is below
-------------
11AAA
12BBB
13CCC
24DDD
25EEE
My overall view data is below
------------------------------
FamilyID FmailyName LocationID LocationName PlaceID PlaceNameName
-------- ---------- ---------- ------------ ------- -------------
1 A1 Singhur 1AAA
1 A1 Singhur 2BBB
1 A1 Singhur 3CCC
1 A2 Rampur 4 DDD
I want to display my data in treeview like below..
A
|____Singhur
|____AAA
|____BBB
|____CCC
____Rampur
The above format i want to display in treeview dynamically..
How to do this..?
Pls. help.. i am trying last 5 hrs....
推荐答案
这篇关于Treeview节点在asp.net中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!