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


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

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

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


加好友 发短信
等级:超级版主 帖子:107440 积分:546479 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/3/4 21:19: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
Dim range = t.Grid.GetCellRange(0, 2,t.Grid.rows.count - 1,2) ‘第二列
range.Style = cs1

 回到顶部