62,269
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[3].Text == "10")
{
e.Row.Cells[3].Text = "一般";
}
else if (e.Row.Cells[3].Text == "20")
{
e.Row.Cells[3].Text = "<font color=red>好</font>";
}
}
}