DATAGRID只能帮定一个记录集吧
看看是否能生成或合并成一个记录集?

解决方案 »

  1.   

    如果使用dataset,那么关联两个dataset.tables(),然后绑定
      

  2.   

    i agree with upstairs opinion. use two tables, and then bind them together.
      

  3.   

    myCommand1.Fill(ds,"tName")
    myCommand2.Fill(ds,"tName")
      

  4.   

    我是用了DATASET数组,数据绑定如下,在DATAGRID翻页时点页号,不起作用;如果dataset(0)和dataset(1)分别绑定到两个datagrid上,使用各自的翻页函数则一切正常。我主要是希望dataset数组维数变化时不用在增加datagrid,那样太麻烦。
    cont为选中内容
    数据绑定这样:
    select case cont
       case "A'
               dbgrid1.datasource=dataset(0)
               dbgrid1.bound()
      case "B'
               dbgrid1.datasource=dataset(1)
               dbgrid1.bound()
    end select我不知道我的这种做法同各位提供的使用dataset.tables的方法的差别在哪。因为我没用过,所以感觉好象类似。
    请各位指教。很急呀。
    谢谢各位