protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    
{

        
if (e.Row.RowType == DataControlRowType.DataRow)
        
{
            
if (e.Row.Cells[0].Text == "1")
            
{
                e.Row.BackColor 
= System.Drawing.Color.Red;
            }

            
else
            
{
                e.Row.BackColor 
= System.Drawing.Color.Blue;
            
            }

        }

}


 

posted on 2007-02-02 17:22  阿米  阅读(613)  评论(0编辑  收藏  举报