以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助] CheckBox 问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=65785)

--  作者:wangyinming
--  发布时间:2015/3/23 10:43:00
--  [求助] CheckBox 问题
窗口中有多个CheckBox插件,怎么使其只能选择一个呢?
--  作者:Bin
--  发布时间:2015/3/23 10:46:00
--  
RadioButton  用这个
--  作者:wangyinming
--  发布时间:2015/3/23 10:57:00
--  
RadioButton ,不适用。有没有办法限制逻辑列的办法

--  作者:jialihaha
--  发布时间:2015/3/23 10:58:00
--  
那只能用代码实现了
--  作者:Bin
--  发布时间:2015/3/23 11:01:00
--  
你的需求就是RadioButton啊.为何现在又说不适用呢?

如果CheckBox绑定了列,  意思就是2个列只能选一个是吧?

datacolchaning 事件
\'这个是禁止选择的
if e.datacol.name="列1" then
   if e.datarow("列2") then
       e.cancel=true
   end if
end if
if e.datacol.name="列2" then
    f e.datarow("列1") then
       e.cancel=true
   end if
end if



--  作者:狐狸爸爸
--  发布时间:2015/3/23 16:27:00
--  

帮助有例子:

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