在同一GridView中显示与不同表不同的内容 [英] display different from different tables in same gridview

查看:102
本文介绍了在同一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.


这篇关于在同一GridView中显示与不同表不同的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆