Simple method to load treeview

kerv21

New member
Joined
Nov 16, 2009
Messages
2
Programming Experience
Beginner
I am just starting to learn VB.Net and need some assistance.
I have two tables: "Companies" and the other "Customers".
I am using SQL Server 2008 as RMDB.


Companies
------------
Comp_Key << (Primary Key)
Comp_Name


Customers
----------
Comp_Key << (Key)
Cust_Key
Cust_Name

I want to load the names into a treeview using a disconnected data connection. So the tree data would look like:

Company Name (Tag= CompID)
....Customer Name (Tag=CustID)
....Customer Name ...
....Customer Name ...
Company Name
....Customer Name
....
.... (and so on...)

Can anyone help with a code snippet to load a treeview using disconnected databases ?
 
Last edited:
Back
Top