Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do v display data from different tables in single gridview and on single aspx page.

What i mean is, I have some data in one table which I will b displaying it in a gridview with one hyperlink column, which allows to browse data in another table based on relationship.
What I want is,

<b>I want to display data from 1 or more tables in a single gridview and on a single aspx page</b>
Thanx in advance
Posted

1 solution

Combine the two tables into one datasource and bind it to the grid. Provided of course both tables have the same structure (number and type of columns) you can use DtaaTable.Merge otherwise you will need an intermediary table.
 
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