for (int i = 0; i < GridView1.Rows.Count; i++)
        { //为了对全部数据行都有用,我们使用循环
    string lbl = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "state"));//我们得取出行中state字段绑定的值,用他作为判断条件
if (lbl == "UT")
{ //如果他的值等于UT,那么
e.Row.BackColor = System.Drawing.Color.Red;
}
}     for (int i = 0; i < GridView1.Rows.Count; i++)
{ //为了对全部数据行都有用,我们使用循环
string lbl = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "state"));//我们得取出行中state字段绑定的值,用他作为判断条件
if (lbl == "UT")
 { //如果他的值等于UT,那么
e.Row.BackColor = System.Drawing.Color.Red;
}
}

上面的语句没有错误  可是为什么我在调试的时候看不到
lal="UT"着行的背景颜色改变呢?