Solved

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

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

809 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