Click here to Skip to main content
15,901,505 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
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
-------------
1 A
Table :B (Column : FamilyID,LocationID,LocationName)
---------
Data is below
-------------
1 1 Singhur
1 2 Rampur
1 3 Rajpat

Table :C (Column : LocationID,PlaceID,PlaceNameName)
----------
Data is below
-------------
1 1 AAA
1 2 BBB
1 3 CCC
2 4 DDD
2 5 EEE

My overall view data is below
------------------------------
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

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....
Posted
Updated 10-Aug-11 1:22am
v4
Comments
Sergey Alexandrovich Kryukov 9-Aug-11 21:12pm    
More than what? :-)
--SA

1 solution

If only there was a place you could search for articles[^] on TreeViews...
 
Share this answer
 
Comments
gani7787 11-Aug-11 2:39am    
I got the solution...thanks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900