protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("OnMouseOver", "c=this.style.backgroundColor;this.style.backgroundColor='#5D7B9D';"); e.Row.Attributes.Add("OnMouseOut", "this.style.backgroundColor=c;"); } }