Solved

How to populate TreeView from Data Table in ASP.Net web appication

Posted on 2016-07-27
2
43 Views
Last Modified: 2016-07-30
Hi,
I am working on .Net 4.5 web application. I have  a Data Table with 4 columns named as A,B,C,D. the Table has 4 rows Column A has (A1,A2,A3,A4 values),column B has (B1,B2,B3,B4 values),column C has(C1,C2,C3,C4 values) and column D has(D1,D2,D3,D4 values).
I need to show Tree View with  A,B,C & D has 4 parent nodes and respective column values has child nodes.

Thanks.
0
Comment
Question by:KavyaVS
2 Comments
 
LVL 11

Accepted Solution

by:
Deepak Lakkad earned 500 total points
ID: 41734506
Hi,

As per your question, there is data in following manner

A      B      C      D
A1      B1      C1      D1
A2      B2      C2      D2
A3      B3      C3      D3
A4      B4      C4      D4

Am I Correct?

For Generating TreeView, you need data with parent-child relationship ...

Your don't have any parent-child relationship.

BTW,

following link contains a good example for generating TreeView from Database.

http://www.aspsnippets.com/Articles/Populate-Bind-ASPNet-TreeView-with-Parent-Child-relationship-from-database-in-ASPNet.aspx

If will be helpful to you

- Deepak Lakkad
0
 

Author Comment

by:KavyaVS
ID: 41736182
Thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now