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!