Solved

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

Posted on 2016-07-27
2
48 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

11 Experts available now in Live!

Get 1:1 Help Now