Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i using 58 tables in my project i want to display the 4tabels data's a single datagridview one impotent matter there are no common fields in that 4 tables...
I WANT LIKE THIS

Tabel 1:

Name Age Address
-----------------------------
ravi 14 xxxxx
raj 58 xxxxx

.
.
.
.
.
------------------------------
Tabel 2:

Salary Email-id
------------------------------
20000 *********
58552 *********
.
.
.

now display the tabel 1--Age and tabel 2--Salary in one datagridview like this
--------------
Age salary |
--------------|
14 20000 |
58 58552 |
---------------
Posted
Updated 29-Jul-13 3:41am
v3
Comments
joshrduncan2012 29-Jul-13 9:22am    
Help you with what? What have you accomplished so far?
ZurdoDev 29-Jul-13 9:30am    
How would it look? Do they all the same number of columns? Why in one gridview? What's the point?

From what you've posted, there is no relationships between these tables at all. The grid controls will only show data from a single table at a time, be it a SELECT from a single table or a SELECT/JOIN statement, which really builds a temporary table from data in other tables.

With no relationship, there is no way to build this table you want to show.
 
Share this answer
 
@Ravi - The requirement is puzzling. Why do you want to display unrelated tables in a single datagrid. Can't you display this in a tabbed view (using jQuery or AJAX) in a single screen?
 
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