Code is self explanatory. No explanation is needed. Try to run this code and see the result yourself. :)
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
// only apply changes if its DataRow
if (e.Row.RowType == DataControlRowType.DataRow)
{
// when mouse is over the row, save original color to new attribute, and change it to highlight yellow color
e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='SkyBlue'");
// when mouse leaves the row, change the bg color to its original value
e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=this.originalstyle;");
//Color.
}
}