以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  某些单元格不可编辑  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=67383)

--  作者:jialihaha
--  发布时间:2015/4/23 11:29:00
--  某些单元格不可编辑
根据当前行的某列的值,让另外某列不可编辑,如何实现?
--  作者:狐狸爸爸
--  发布时间:2015/4/23 11:30:00
--  

可以,prepareEdit事件:

 

http://www.foxtable.com/help/topics/0605.htm

 


--  作者:Bin
--  发布时间:2015/4/23 11:32:00
--  

PrepareEdit 事件


http://www.foxtable.com/help/topics/0605.htm



例如根据 列A  判断列B是否能编辑


If e.Col.Name = "列B" andalso e.row("列A") <> "123" Then

   
    e.Cancel = 
True
End
 If


--  作者:jialihaha
--  发布时间:2015/4/23 11:49:00
--  
谢谢