Foxtable(狐表)用户栏目专家坐堂 → [求助]Listview分页后排序显示


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

主题:[求助]Listview分页后排序显示

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/11/1 15:44:00 [显示全部帖子]

只需要把

 

For idx As Integer = idx1 To idx2
    Dim dr As DataRow = DataTables("国家").DataRows(idx) '根据行位置从数据表中取得对应的DataRow

 

改成

 

Dim drs = DataTables("国家").Select("", "面积 desc")

For idx As Integer = idx1 To idx2
    Dim dr As DataRow = drs(idx) '根据行位置从数据表中取得对应的DataRow

 


 回到顶部