Solved

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

Posted on 2016-07-27
2
58 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

756 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