473,396 Members | 2,020 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,396 software developers and data experts.

how to build treeview and connect to database and retrive the fields to the tree

hi,

This is vijay kumar.p. Iam facing a problem regarding the
treeview control. I am able to create a structure of the
tree using the Node property from property pane, but how
to build a database connection using MSaccess to get one
of the field(say nodeid) of the database to the parent or
to the child node of the treeview control. plz help out to
build the code for this. will b greatful if someone could
really help me or provide code for this.

regards,

vijay kumar.p
Nov 17 '05 #1
2 2638
I just found this tonight - - haven't tried it, but here's the link anyway:
http://www.15seconds.com/issue/030827.htm

David Wier
August Wind Software
http://aspnet101.com
http://aspexpress.com
Home of ASP Express - the best ASP/HTML text editor in the Galaxy!
"vijay" <da*****@rediffmail.com> wrote in message
news:0a****************************@phx.gbl...
hi,

This is vijay kumar.p. Iam facing a problem regarding the
treeview control. I am able to create a structure of the
tree using the Node property from property pane, but how
to build a database connection using MSaccess to get one
of the field(say nodeid) of the database to the parent or
to the child node of the treeview control. plz help out to
build the code for this. will b greatful if someone could
really help me or provide code for this.

regards,

vijay kumar.p

Nov 17 '05 #2
hi david wire,

Thanks for tht information u have given. i will more greatful if u can
provide me the code for maintaing the parent and child relationship
when we have the dependancy of the nodes. plz chk with the problem as
soon as possible and respond. we have the data in the database
(MSAccess).

relationship is like this:

nodeid Dependson

1 - 2
1 - 3
1 - 5
2 - 4
2 - 3
5 - 4
in the similar way there are many plz help to get the parent n child
veiw in the tree retreiving the data from the database randomly.
regards,
vijay.p

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mike | last post by:
hi everyone! i'm searching for a tutorial or an example for how to fill a treeview with information from my ms sql database. i've found some on "code project" and other sites, but nothing like a...
0
by: vijay | last post by:
hi, This is vijay kumar.p. Iam facing a problem regarding the treeview control. I am able to create a structure of the tree using the Node property from property pane, but how to build a...
6
by: Vern | last post by:
I'm adding twenty nodes (Parent and child) to a tree view. Only 10 items are viewable in the window at at time. So when it initially shows the tree, it shows the last ten items forcing me to use...
4
by: pmcguire | last post by:
I have a treeview with a lot of nodes. I want to load only the nodes that are initially visible when the form loads, and then continue to populate it in background and/or when the nodes are required...
7
by: vsiat | last post by:
I am trying to create a treeview out of a database table with the typical structure ID, NAME, PARENTID, TYPE, EXTRA_INFO, where is linked to the . What I want to achieve is create a tree made...
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...
4
by: christof | last post by:
It'll be really easy...Sorry for that question: I've got a MasterPage <%@ Master Language="C#" ClassName="MasterP" %> and some slave.aspx.<%@ Page Language="C#" MasterPageFile="~/Master1.master"...
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. ...
6
by: serge calderara | last post by:
Dear all, I was wondering is there is a way to customise the treView control in order to get any Control as a Node. What I try to do is having a Progress bar as a treeview node object. Is...
0
petepell
by: petepell | last post by:
Hello all, I am developing an application in VB 2008 that works with a SQL2005 DB to store and manipulate employee data. In one section of the app I want to be able to show a treeview of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.