以文本方式查看主题

-  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=26567)

--  作者:实话实说
--  发布时间:2012/12/8 6:17:00
--  如何锁单元格

"√"选确认后,第一列的当前行的不可编辑

类似如

 

If e.DataRow("确认") = True Then  
    e.DataRow("第一列").AllowEdit = False 
End If


--  作者:明丰
--  发布时间:2012/12/8 7:37:00
--  
\'表事件—编辑—StartEdit
If e.Col.Name = "第一列" AndAlso e.Row("确认") = True  Then
    e.Cancel = True \'取消编辑
End If