在同一GridView中显示与不同表不同的内容

在同一GridView中显示与不同表不同的内容

问题描述:

v如何在单个gridview和单个aspx页面上显示来自不同表的数据.

我的意思是,我在一个表中有一些数据,我将通过带有一个超链接列的gridview将其显示在一个网格视图中,该视图允许根据关系浏览另一个表中的数据.
我想要的是,

< b>我想在单个gridview中和单个aspx页面上显示来自1个或多个表的数据. 预先感谢

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

将两个表合并为一个数据源,并将其绑定到网格.当然,只要两个表都具有可以使用DtaaTable的相同结构(列的数量和类型),否则请合并表.
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.