以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  锁定行代码问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=56594)

--  作者:utcxray
--  发布时间:2014/9/9 13:22:00
--  锁定行代码问题

If e.DataCol.Name = "发货" AndAlso e.DataRow("发货") = True Then

    Syscmd.Row.Lock()

  

End If


目的:表中一个逻辑列,名为“发货”,如果我选中“发货”,那么此行锁定并出现锁定标记。再不能修改和删除。

代码放在DATACOLCHANGER里面。


请高手说下此段代码的问题,实际执行后还可以编辑,为什么


--  作者:Bin
--  发布时间:2014/9/9 14:16:00
--  

If e.DataCol.Name = "发货" AndAlso e.DataRow("发货") = True Then

    e.datarow.locked=true

End If


--  作者:utcxray
--  发布时间:2014/9/9 14:52:00
--  
谢谢BIN