Dim sp As TimeSpan = e.Row("输入日期") - e.Row("施工日期")If sp.TotalDays >= 10 Then e.Table.DataTable.AddUserStyle("到期", color.red, color.black) e.style = "到期"End If