Click here to Skip to main content
16,004,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There are two tables and i want to throw data to datagridview, i have multiple conditions Please help
Posted

ya you can do it
use joins

select *from table1 tb1 inner join table2 tb2 on tb1.pk_tb1=tb2.fk_tb1
 
Share this answer
 
Umm, simple!

You can merge those two tables' data into one single collection (based on your conditions you're talking but sharing), and bind it to your datagridview.

-KR
 
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