Foxtable(狐表)用户栏目专家坐堂 → 请问这儿表样式如何做呢


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

主题:请问这儿表样式如何做呢

帅哥哟,离线,有人找我吗?
大红袍
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/7/28 15:40:00 [显示全部帖子]

1、代码

 

If e.Row.Index > = e.Table.TopPosition AndAlso e.Row.Index < = e.Table.BottomPosition Then
    If e.Row("IsCheckOut") = True Then
        e.Table.DataTable.AddUserStyle("BillSelect1", Color.RoyalBlue, Color.white)
        e.Table.DataTable.Styles("BillSelect1").FontStrikeout = True
        e.Style = "BillSelect1"
    Else
       e.Table.DataTable.AddUserStyle("BillSelect2", Color.RoyalBlue, Color.white)
       e.Style = "BillSelect2"
    End If
Else
    e.Table.DataTable.AddUserStyle("BillIsCheckOut", Color.White, Color.Black)
    e.Table.DataTable.Styles("BillIsCheckOut").FontStrikeout = True
    If e.Row("IsCheckOut") = True Then
        e.Style = "BillIsCheckOut"
    End If
End If

2、要把风格去掉才行

 

标题区和选定区的背景颜色设置,只有在属性中的“使用界面”设置为False的时候,才会生效。


 回到顶部