Foxtable(狐表)用户栏目专家坐堂 → 填充数据的时候可否不按照顺序填充?


  共有3055人关注过本帖树形打印复制链接

主题:填充数据的时候可否不按照顺序填充?

帅哥哟,离线,有人找我吗?
czy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33957 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2014/8/17 19:57:00 [显示全部帖子]

Select加个排序试试

 

Dim Names() As String  = {"排序列1", "排序列2","排序列3","排序列4","排序列5"}
For Each Name As String In Names
    For Each dr1 As DataRow In DataTables("jinzhengbe").Select("[id] is not Null",name & " DESC")
        Dim dr2 As DataRow = DataTables("cai").AddNew()
        Dim dr3 As DataRow = DataTables("tianma").AddNew()
        Dim dr4 As DataRow = DataTables("new").AddNew()
        Dim dr5 As DataRow = DataTables("hongfu").AddNew()
        For i As Integer = 0 To Cols1.Length -1
            dr2(Cols2(i)) = dr1(Cols1(i))
            dr3(Cols3(i)) = dr1(Cols1(i))
            dr4(Cols4(i)) = dr1(Cols1(i))
            dr5(Cols5(i)) = dr1(Cols1(i))
        Next
    Next
Next

 


 回到顶部