Click here to Skip to main content
15,939,065 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
can we display two sql tables in one gridview in ASP.Net.
I 've dept,emp tables ,is it possible to display these two tables info in one gridview?
Dilan Shaminda 17-Aug-14 9:05am    
Yes.You can join tables and display them in one gridview. what is the relationship between those two tables?

1 solution

You can do it by holding the result of both queries in two DataTable...and fill your grid view templates field row by row....or u can stick with @Hard_Rockz answer it it fulfill ur needs.
PS: it might not be the best answer but it still works for me since i still fresh...
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