想历遍整个日工资表的每个单元格,单元格日工资值超500元的,标注红色 Post By:2023/6/17 9:32:00 [只看该作者]
Dim t As Table = Tables("日工资") For Each c As DataCol In DataTables("日工资").DataCols For Each r As Row In t.Rows' If t.Rows(r)(c) > 500 Then Dim cr1 As C1.Win.C1FlexGrid.CellStyle = t.Grid.Styles.Add("a") cr1.BackColor = Color.White cr1.ForeColor = Color.Red t.Grid.SetCellStyle(r.Index + t.HeaderRows, 2, cr1) End If Next Next 想历遍整个日工资表的每个单元格,单元格日工资值超500元的,标注红色