如  select a.id,b.xm from a,b . 
属性中 页眉:序号   
       字段:?  id? 
谢谢

解决方案 »

  1.   

    呵呵,一样的,多表查询出来的结果填充到一个DATATABLE里面,然后用DATATABLE绑定就可以了
      

  2.   

    一样的,如下
    <asp:BoundColumn DataField="id" HeaderText="id"></asp:BoundColumn>
    <asp:BoundColumn DataField="xm" HeaderText="xm"></asp:BoundColumn>
      

  3.   

    我用的是AutoGernateColumn=false ,不是自动生成的。
      

  4.   

    to stoneallen: 如果两列zi dD DD
      

  5.   

    那你要起个别名,类似
    select a.dd as dd1,b.dd as dd2 from a,b 
    <asp:BoundColumn DataField="dd1" HeaderText="dd1"></asp:BoundColumn>
    <asp:BoundColumn DataField="dd2" HeaderText="dd2"></asp:BoundColumn>
      

  6.   

    to stoneallen: 你真牛,我敲错了你都看对了,谢谢你,接分