Foxtable(狐表)用户栏目专家坐堂 → [求助]如何让符合条件的单元格变红加粗?


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

主题:[求助]如何让符合条件的单元格变红加粗?

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


加好友 发短信
等级:贵宾 帖子:35433 积分:178524 威望:0 精华:3 注册:2013/3/30 16:36:00
  发帖心情 Post By:2015/4/27 10:32:00 [显示全部帖子]

比如

Dim t As Table = Tables("总分2015级二诊临界生名册")
Dim ns2 As C1.Win.C1FlexGrid.CellStyle = t.grid.Styles.Add("自定义的样式2")
ns2.ForeColor = Color.Red
ns2.Font = New Font("宋体",9, FontStyle.Bold)
For Each r As Row In t.Rows
    If r("语文")>90 Then
        t.Grid.SetCellStyle(r.Index+1, t.Cols("语文").Index+1, ns2)
    End If
Next

 回到顶部