Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ques abt collection

Status
Not open for further replies.

purplehaze1

Programmer
Jul 23, 2003
86
0
0
US
Suppose I have two tables: customers and orders. I created two class,
customer and orders.

tbl customer
-----------
custid
custname


tbl orders
----------
orderid
custid
orderName
orderAmt


I want to display customer orders in datagrid.
So, I created orders collection and binded to the datagrid, but it doesn't have customer name, only custid. How can I get custname included in the collection and display in datagrid?
(My actual program has more than 20 tables. If user selects particular order id, I have to display related information for that order from all tables. i.e. address from address table for that customer, email from email table, phone from phone table, etc..., what's the best method to do this?) Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top