Change the Background Row Color of the GridView control using MouseEvents
In Events DoubleClik on RowDataBound.
after DoubleCliking on RowDataBound Event you will get a code in .aspx.cs as Below:
protected void GridView2_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='Silver'");
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='green'");
}
}
In Above RowDataBound event add onmouseover and onmouseout Events.The Color can be set by using this.style.backgroundcolor='red'