ADO Database ASP.Net

<%@ Page Language="C#" %>


    Using the RowCreated Event to programmatically change the style
    
        protected void gridProducts_RowCreated(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {            
                int daysToManufacture = (int)DataBinder.Eval(e.Row.DataItem, "DaysToManufacture");
                if (daysToManufacture == 0)
                {
                    e.Row.BackColor = System.Drawing.Color.LightPink;
                    e.Row.ForeColor = System.Drawing.Color.Maroon;
                }
                else if (daysToManufacture == 1)
                {
                    e.Row.BackColor = System.Drawing.Color.LightCyan;
                    e.Row.ForeColor = System.Drawing.Color.DarkBlue;
                }
                else
                {
                    e.Row.BackColor = System.Drawing.Color.LightGray;
                    e.Row.ForeColor = System.Drawing.Color.Red;
                }
            }
        }   
    


    
    

                    ProviderName="System.Data.SqlClient" 
            ConnectionString="<%$ ConnectionStrings:AdventureWorks %>"
            SelectCommand="Select ProductID, Name, ProductNumber, DaysToManufacture from Production.Product">            
        
                    AutoGenerateColumns="false" OnRowCreated="gridProducts_RowCreated">