参考:
http://www.foxtable.com/webhelp/topics/2471.htm
设置表的DrawCell事件代码:
If e.col.Name = "计划数量" orelse e.col.Name = "安全库存" Then
If e.Row.IsNull("计划数量") = False andalso e.Row.IsNull("安全库存") = False
If e.Row("计划数量") < e.Row("安全库存") Then
e.Style = "红色样式"
else
e.Style = "绿色样式"
End If
End If
End If