gridview问题显示列 [英] gridview issues display columns

查看:62
本文介绍了gridview问题显示列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从两个不同的表中获取两列并显示在同一网格视图中。

How do you get two column from two different table and display in the same gridview.

推荐答案

如果要连接两个数据表,请检查此



DataTable.Merge Tables [ ^ ]

combined-n-datatables -into-a-single-datatable [ ^ ]

http://forums.asp。 net / post / 2226833.aspx [ ^ ]
if you want to join two datatables then check this

DataTable.Merge Tables[^]
combining-n-datatables-into-a-single-datatable[^]
http://forums.asp.net/post/2226833.aspx[^]


将它们加入查询本身。

有关JOINS的更多信息,请访问 http ://blog.sqlauthority.com/2009/04/13/sql-server-introduction-to-joins-basic-of-joins/ [ ^ ]。
Join them in the query itself.
For more about JOINS, visit http://blog.sqlauthority.com/2009/04/13/sql-server-introduction-to-joins-basic-of-joins/[^].


这篇关于gridview问题显示列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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