Click here to Skip to main content
15,887,323 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to bound the data to the Datagridview from two different tables which do not have any relation with each other? Also, the data should be displayed from the two tables to the same Datagridview at the same time.
Posted
Updated 10-Aug-10 4:11am
v4
Comments
LittleYellowBird 10-Aug-10 7:01am    
Hi, it is best not to use all capitals, it looks like shouting and upsets people. :)
T.Saravanann 10-Aug-10 9:30am    
Hi Bhagyahri,

What is your output format?
Ex: From Table1 have Id,Name,Age columns and Table2 have Sal,Dept columns
Output format in Datagridview columns are Id,Name,Age,Sal,Dept
It's right

1 solution

Make a third table. Merge the rows of both the tables into it one by one. Use this third table as your datasource to Gridview and display it. Done!
 
Share this answer
 

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