在一个页面上显示二段记录,知道怎么操作吗??
如:
姓名    年龄   |   姓名    年龄
张三  18    李四  16

解决方案 »

  1.   

    参见海波的文章:经典水晶报表设计——分栏http://blog.csdn.net/haibodotnet/archive/2003/12/25/21550.aspx
      

  2.   

    看看这个效果,然后绑定这样的结果集就行了(sql server2000):create table #t(a int,b varchar(20),c varchar(2))insert #t
    select 1,'三1','男' union all
    select 2,'三2','男' union all
    select 3,'三3','男' union all
    select 4,'三4','男' union all
    select 5,'三5','男' union all
    select 6,'三6','男' union all
    select 7,'三7','男'--select * from #tselect * from #t
    left join #t table2 on table2.a=#t.a+1
    where #t.a % 2 !=0select 
    max(case when a%2=1 then a end)a,
    max(case when a%2=1 then b end)b,
    max(case when a%2=1 then c end)c,
    max(case when a%2=0 then a end)a,
    max(case when a%2=0 then b end)b,
    max(case when a%2=0 then c end)c
    from #t
    group by (a+1)/2
      

  3.   

    来迟了,
    http://blog.csdn.net/haibodotnet/archive/2003/12/25/21550.aspx