Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have three table

Cid Cname
1 Shakeer
2 raj
3 armaan

table named as customer info


Vid Cid Vname Vmodel
1 1 ford 2006
2 1 bmw 2007
3 2 hyundai 2009
4 3 toyota 2010


table named as vehinfo

Sid Vid Cid engineoil hydraulicoil
1 1 1 500 1200kg
2 1 1 300 125kg
3 2 1 600 1kg
4 3 2 8 5kg



named as service info

from these tables i should view in developer express gridview
as cname vname vmodel engineoil hydraulicoil
shakeer ford 2006 500 1200


i am not able to do is there any method other the gridview please helpme out
Posted
Comments
shakeer mp 21-Feb-14 23:51pm    
Please help me out ma frnds i am stuck with this project

1 solution

Nothing wrong with using the gridview ... you just need to get the data query right
Try this in the data source
SQL
SELECT A.Cname B.Vname, B.Vmodel, C.engineoil, C.hydraulicoil
from [customer info] A
INNER JOIN vehinfo B ON A.Cid=B.Cid
INNER JOIN [service info] C ON A.Cid=B.Cid and B.Vid=C.Vid
 
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