Foxtable(狐表)用户栏目专家坐堂 → 合计行颜色


  共有3055人关注过本帖平板打印复制链接

主题:合计行颜色

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/11/17 19:11:00 [只看该作者]

Dim g As New CrossTableBuilder("统计表1", DataTables("订单"))
g.HGroups.AddDef("产品")
g.VGroups.AddDef("客户")
g.Totals.AddDef("数量", "数量")
g.HorizontalTotal = True
g.VerticalTotal = True
g.VerticalProportion = True
g.Build()

Dim t As Table = Tables("统计表1")
Dim cs1 As C1.Win.C1FlexGrid.CellStyle = t.grid.Styles.Add("cs1")
cs1.BackColor = Color.Red
For j As Integer = 1 To t.Cols.Count
    t.Grid.SetCellStyle(t.Rows.Count, j, cs1)
Next

MainTable = t


 回到顶部