473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

treeview populate with database.

i am trying to generate a tree view from database, but i after 10 days, i could not fine any way, how to populate, i have tried alot...
please help me...
i have 2 tables of database..
i contains the parent nodes, and other contain the child node..
e.g

Expand|Select|Wrap|Line Numbers
  1.  
  2.     first table. CC_ATTRIBUTE. (Which Contains Child Node)
  3.  
  4.     CC_Id Description CC_Attribute_Type_Id
  5.     1 Diamond 1
  6.     2 Gold 1
  7.     3 Silver 1
  8.     4 Bronze 1
  9.     5 High 2
  10.     6 Meduim 2
  11.     7 Low 2
  12.     8 Exclusive 3
  13.     9 Mix 3
  14.     10 Key Acount 3
  15.     11 PCI 3
  16.     12 Coke 3
  17.     13 Traditional Store 4
  18.     14 Modern General Store4
  19.     15 Bakery 4
  20.  
  21.  
  22.     2nd Table...
  23.     CC_Attribute_type (Which Contains Parent Nodes)
  24.  
  25.     CC_Attribute_type_id Description
  26.     1 Sales Status
  27.     2 Socio Economic Status
  28.     3 Outlet Status
  29.     4 Outlet Classification
  30.  
please help me...
find the attachement blow....it should look like this...
Attached Images
File Type: jpg tree.jpg (35.9 KB, 587 views)
Mar 18 '11 #1
1 2306
debasisdas
8,127 Expert 4TB
Please read this, ignore the part that is not relevent to you.
Mar 19 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: HalifaxPinball | last post by:
I want to collect data about some music in a database. Few tricky things that I have questions about... I'd like to start to populate the database with some info from a website. The web site is...
0
by: Teemu | last post by:
Hello. Please bear with me if this seems like a basic question (I'm just getting started with all this ASP.NET and WebControls stuff). Anyway, I'm trying to programmatically build a...
6
by: QT | last post by:
Dear Sirs, I have a database table which has 4 column such as Document Name Subpart Title I want to make a treeview like this
9
by: Marina | last post by:
Hello! I have a database with some customers. Each one of them has 3 other customers under him etc. (something like an MLM system). Now, I want to create a treeview with this. Eg. C1 C11...
2
by: Dirk | last post by:
Hi, I am using a TreeView in an ASP.NET application where I have my nodes update on demand. When I expand a node that has no children and then add a child in my datasource and expand the node...
0
by: Ray Booysen | last post by:
Hi all I have a treeview which is bound to a sitemap. However, the Populate event never fires. I'm wanting to add my custom menu items depending on items in the sitemap and I was put onto this...
0
by: Alex D. | last post by:
Does any body knows if when using the treeview populate on demand feature if the whole tree's viewstate is sent back to the server under the hood? Thanks, Alex.
2
by: thanneman | last post by:
Hello all, First off all, I appollogize for my englisch. I have a problem. I have a table in my sql database with 2 fields. Field 1 is an ID, and Field 2 contains the complete file locations. ...
3
by: babu17 | last post by:
hi , I have a database table with 3 columns table1: eid ename parentid 0 root 0 1 child1 0 2 child2 0
4
by: Ben | last post by:
Hi We have the below details: Order_Base CustomerNo, OrderNo, OrderItemNo..... Order_Detail OrderItemNo, ParentItemNo, Desc......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.