Foxtable(狐表)用户栏目专家坐堂 → 表格的表头颜色可否自定义啊?


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

主题:表格的表头颜色可否自定义啊?

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2019/3/4 9:07:00 [显示全部帖子]

Dim t As Table = Tables("表A")
Dim cs1 As C1.Win.C1FlexGrid.CellStyle = t.Grid.Styles.Add("样式1")

cs1.forecolor = Color.red
cs1.backcolor = Color.yellow
cs1.Border.Width = 3
cs1.Border.Color = Color.Red
cs1.Border.Direction = 0
For i As Integer = 0 To t.HeaderRows-1
    For j As Integer = 1 To t.cols.count
            t.Grid.SetCellStyle(i, j, cs1)       
    Next
Next

 


 回到顶部