我的做法是:
第一步,在窗口表中的 DrawCell 事件中加入如下的代码,你可以根据自己的代码进行修改
If Vars("s")="资金统计" Then ReturnElse If e.Row("摘要") ="期初结存" Then e.Style = "期初" End If
End If
第二步,在窗口的 事件中加入以下代码:
DataTables("资金_Table1").AddUserStyle("期初", Color.Yellow, Color.Black)