Foxtable(狐表)用户栏目专家坐堂 → 刷新行出错


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

主题:刷新行出错

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


加好友 发短信
等级:五尾狐 帖子:1062 积分:9191 威望:0 精华:0 注册:2015/8/12 16:28:00
刷新行出错  发帖心情 Post By:2018/9/12 10:01:00 [显示全部帖子]

在datacol changed事件里面:
For Each dr As DataRow In DataTables("inputItem").SQLSalect(......)
         If dr("quantity") > reportout Then
         .....
            dr.save
        Else
           .....
            dr.save
        End If
        Dim ids As String
        ids=dr("_identify")
                DataTables("inputItem").RemoveFor("_identify='" & ids & "'")
                DataTables("inputItem").AppendLoad("_identify='" & ids & "'")
        
    Next
为何这段代码在所有行刷新完毕后会出错?
This row has been removed from a table and does not have any data.  BeginEdit() will allow creation of new data in this row.

 回到顶部
帅哥哟,离线,有人找我吗?
lur320
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1062 积分:9191 威望:0 精华:0 注册:2015/8/12 16:28:00
  发帖心情 Post By:2018/9/12 10:02:00 [显示全部帖子]

并且,目前我还没有设定datatable 的sqlloadfilter。所有行都已经加载到表里面。

 回到顶部