|
Only after seeing so many people posted to me, thank you, the solution is to solve the background color change, but the foreground color is still the same, help me see what is wrong with the code, this time change it and give points!
protected void gridview2_RowDataBound (object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add ("OnMouseOut", "this.style.backgroundColor = 'White'; this.style.color = '# 003399'");
e.Row.Attributes.Add ("OnMouseOver", "this.style.backgroundColor = '# 6699FF'; this.style.color = '# 8C4510'");
}
} |
|