从db中选择数据并将其插入gridview [英] select data from db and insert them into gridview

查看:114
本文介绍了从db中选择数据并将其插入gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在1个网格视图中显示2个查询结果我该怎么做

i want to show 2 query result in 1 grid view how can i do this

推荐答案

从两个查询中获取结果并将它们连接到内存中将它们绑定到GridView,而不是在单个查询中将它们连接起来。



类似已解决的主题:在运行时以网格视图显示两个查询的数据 [ ^ ]
Get the results from both queries and join them in memory just before you bind them to the GridView instead of joining them in a single query.

Similar solved thread : show data of both queries at runtime in a grid view[^]


嗨亲爱的,



当两个查询加入[Inner Join,Outer Join etc]或Union时获取结果或Union All。
Hi dear,

Get the result when the both query are joining [Inner Join, Outer Join etc ] Or Union Or Union All.


通过连接两个表创建一个视图,然后将此视图绑定到gridview控件。
Create a view by joining both tables and then bind this view to the gridview control.


这篇关于从db中选择数据并将其插入gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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