Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have few questions in LINQ implementation.

1)In VS2010 framework 4.0 how can we use Visualizer to see SQL code. I found the option with Vs2008 but didn't find any where sqlqueryvisualizer.dll to use in VS2010.

2)How to bind gridview with 2 related tables data using datacontext and AssociateWith or LoadWith. ex: I have tblUserType and tblUser


tblUserType                    tblUsers
--------------                ----------  
UsertypeID (Primary)           UserID (Primary)
UserTypeDesc                   Username 
                               UserCity   
                               UserTypeID(FK of tblUserType)  


I want to bind gridview with UserTypeDesc and UserCity and UserName

Thanks,
Srinivas Kalagara
Posted

1 solution

for second point use relationship method to bind gridview to two tables.
 
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