以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  分页加载排序有问题 麻烦帮忙看看  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=74122)

--  作者:mxm121
--  发布时间:2015/9/2 20:39:00
--  分页加载排序有问题 麻烦帮忙看看
With DataTables(e.Form.Name & "_tblCustInfo")
    Dim filter As String = ""
    If .LoadPage <> 0 Then
         filter = "[CustLv] <> \'无效\' And [CustLv] <> \'D\'And [CustLv] <> \'E\'"
        .LoadTop= "CustInfoUpdateDate"
        .LoadReverse = True
        .LoadFilter = filter
        .LoadTop = 500
        .LoadPage = 0
        .Load(False)
e.Form.Controls("TextBox1").Value = 1 & "/" & .TotalPages
    End If
End With
Tables(e.Form.Name & "_tblCustInfo").Sort = "CustInfoUpdateDate DESC"


使用如上分页加载 但是按序加载时 并没有完全按照CustInfoUpdateDate倒叙去加载 CustInfoUpdateDate为时间列 精确至秒
[此贴子已经被作者于2015/9/2 20:47:44编辑过]

--  作者:大红袍
--  发布时间:2015/9/2 21:25:00
--  

设置一下LoadOver吧,指定为 CustInfoUpdateDate


--  作者:mxm121
--  发布时间:2015/9/2 22:07:00
--  
粗心了 写错了 呵呵