Click here to Skip to main content
16,020,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
Is it possible to bind 2 tables to one control on a form and can you point me to a resource so I don't ask stupid Questions again? ;)

Thank You
frazzle
Posted
Updated 28-Dec-10 17:39pm
v2
Comments
Venkatesh Mookkan 28-Dec-10 22:04pm    
What is the actual need of it?

Yes you can do that. You can create a View for the multiple tables using joins (if the tables are relational)
Else
You will have to do it programmatically.

For resource see links below:

http://www.eggheadcafe.com/community/aspnet/2/10052221/how-to-bind-more-than-one-table-with-datagridview-control-in-windows-application.aspx[^]

or

http://www.visualstudiodev.com/visual-basic-express-edition/how-to-bind-combobox-with-two-table-complex-binding-71761.shtml[^]

Hope that helps.
 
Share this answer
 
Comments
Venkatesh Mookkan 28-Dec-10 23:37pm    
I am not sure whether he is asking about this.

Anyways, Good Answer
David C# Hobbyist. 29-Dec-10 7:59am    
Thank You for the link's the second one was helpfull
frazzle

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900