您好: 我在自定义样式中设置了“到期”样式,红底白字,然后在指定表的DrawCell事件中添加了如下代码,output测试确实检测到了数据,但是样式就是不执行,麻烦您看看。
If e.Col.Name = "计划完成时间" Then If e.Row.IsNull("计划完成时间") = False If e.Row("计划完成时间") < Date.Today.AddDays(1) Then e.Style = "到期" End If End IfEnd If