以下是引用aygp在2014-4-18 14:42:00的发言:甜老师好!
重新测试,5楼代码没有问题。请解决6楼问题,并且“毕业状态”为‘不予毕业’ 时,用黄色显示。谢了!
编写drawcell事件,参考
http://www.foxtable.com/help/topics/0656.htm
If e.Col.Name = "学历表" AndAlso e.Text = "无" Then
e.Style = "红"
Else If e.Col.Name = "免考" AndAlso e.Text = "否" Then
e.Style = "红"
Else If e.Col.Name = "成绩合格" AndAlso e.Text = "否" Then
e.Style = "红"
Else If e.Col.Name = "档案齐全" AndAlso e.Text = "否" Then
e.Style = "红"
Else If e.Col.Name = "欠缴学费" AndAlso e.Text = "是" Then
e.Style = "红"
Else If e.Col.Name = "毕业状态" AndAlso e.Text = "不予毕业" Then
e.Style = "黄"
End If