以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]求指点代码 帮忙看看是否有错  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=39603)

--  作者:physics
--  发布时间:2013/8/28 9:29:00
--  [求助]求指点代码 帮忙看看是否有错

1. 在prepareedit

If e.Row("锁定") = True Then
        e.Cancel = True

End If

2.在datachanged

If e.DataCol.Name = "锁定"  Then

    If e.NewValue =True Then 
        e.Cancel = True 

    End If
End If

3.在datachanged

If e.DataCol.Name = "锁定"  Then \'
    If e.NewValue =True Then \'

       e.DataRow.Locked = True
    End If
End If


--  作者:Bin
--  发布时间:2013/8/28 9:32:00
--  
你不是发了同一个帖子,同一个问题吗?

不要重复发帖.


--  作者:physics
--  发布时间:2013/8/28 10:14:00
--  

亲 谢谢咯