SQL Server 2005-将数据绑定到Datagridview问题 [英] SQL Server 2005 - bound data to Datagridview question

查看:90
本文介绍了SQL Server 2005-将数据绑定到Datagridview问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将数据从两个彼此没有任何关系的不同表绑定到Datagridview?另外,数据应同时从两个表显示到同一Datagridview.

How to bound the data to the Datagridview from two different tables which do not have any relation with each other? Also, the data should be displayed from the two tables to the same Datagridview at the same time.

推荐答案

创建第三个表.将两个表的行一一合并.使用此第三张表作为Gridview的数据源并显示它.完成!
Make a third table. Merge the rows of both the tables into it one by one. Use this third table as your datasource to Gridview and display it. Done!


这篇关于SQL Server 2005-将数据绑定到Datagridview问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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