62,074
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
TableCell cell = e.Row.Cells.Cast<TableCell>().OrderBy(x => DateTime.Parse(x.Text)).Last();
cell.CssClass = "YourRedClass";
}
}
应该是这样