If e.Col.IsNumeric AndAlso e.Col.Name <> "总分" Then If e.Row.IsNull(e.Col.Name) = False If e.Row(e.Col.Name) < 60 Then DataTables("学生成绩_Table1").AddUserStyle("红牌",Color.FromARGB(0, 192, 0), Color.DarkSlateGray) e.Style = "红牌" Else If e.Row(e.Col.Name) <= 80 Then DataTables("学生成绩_Table1").AddUserStyle("黄牌", Color.Yellow, Color.DarkSlateGray) e.Style = "黄牌" Else If e.Row(e.Col.Name) > 80 Then DataTables("学生成绩_Table1").AddUserStyle("绿牌",Color.FromARGB(0, 192, 0), Color.DarkSlateGray) e.Style = "绿牌" End If End If End If
|