1、先在数据表的自定义样式里设置颜色和名称
2、在drawcell事件中写如下代码:
Select Case e.Row("第一列") Case "1" e.Style = "红" Case "2" e.Style = "绿" Case "3" e.style= "灰"End Select