不太明白楼主的意思
百度搜索GridView嵌套
或者Margin
又或者inner join

解决方案 »

  1.   

    将a表和b表的选择结果(join in)放到DataSet(ds)里面
    dataGridView.DataSource=dsdataGridView也可以实现嵌套
      

  2.   

    不好意思,可能我没说明白,比如我有两个表a和表b,我想在a里挑几行,在b里挑几行,让它们共同显示在一个datagridview里,请各位帮帮忙提供点具体的语句,本人数据库接触不久,实在比较菜,谢谢了
      

  3.   

    那这2张表的结构呢?
    select * from a join b on a.id = b.id
    这句话的意思就是通过a和b的ID连接起来成为一张表
      

  4.   

    select a.col1,a.col2,b.col1,b.col2,b.col3
    把结果放到一个DataSet中,再绑定到DataGridView
      

  5.   


    select a.字段1,a.字段2,a.字段3 from (
    select 字段1,字段2,字段3 from table1 where "你自己需要的几行"
    uoion all
    select 字段1,字段2,字段3 from table2 where "你自己想要的几行") a 
    这样不就在一起了吗?