下列代码使GridView中title_id列值为 "PC8888"的行变成黄色
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
string str = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "title_id"));
if (str == "PC8888")
e.Row.BackColor = System.Drawing.Color.Yellow;
}