以文本方式查看主题

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

--  作者:nxqtxwz
--  发布时间:2019/12/26 15:57:00
--  权限问题

老师您好,“核定”列是逻辑列,我想实现核定列勾选后锁定当前行用指定颜色显示

问题:

1、勾选困难,有时很难点上,点上了又难以去掉。

2、当前行颜色怎么改变。

3、我放在Click事件中,有没有更好的办法呢?

 

If e.Col.name = "核定" Then
  If user.IsRole("校长") =True  Then
       e.Table.StartEditing
    End If
End If


--  作者:有点蓝
--  发布时间:2019/12/26 16:13:00
--  
去掉之前的代码,到prepareedit事件写代码

If e.Col.name <> "核定"  andalso e.row("核定") = true Then
e.cancel = true
end if

颜色到drawcell事件处理,参考:http://www.foxtable.com/webhelp/topics/0656.htm
If e.row("核定") = true Then
e.style = "样式1"
end if