Foxtable(狐表)用户栏目专家坐堂 → [求助] 不相关记录的背景设定并锁住


  共有2212人关注过本帖树形打印复制链接

主题:[求助] 不相关记录的背景设定并锁住

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107034 积分:544401 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/1/17 21:19:00 [显示全部帖子]

表B,prepareedit事件
If e.Table.Name = "表A.表B" Then
    Dim pr As Row = Tables("表A").Current
    If pr IsNot Nothing Then
        If pr("项目名称") = e.Row("项目名称") Then
            e.Cancel = True
        End If
    End If
End If

drawcell事件
If e.Table.Name = "表A.表B" Then
    Dim pr As Row = Tables("表A").Current
    If pr IsNot Nothing Then
        If pr("项目名称") = e.Row("项目名称") Then
            e.Style = "样式1"
        End If
    End If
End If

 回到顶部