Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
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.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 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