J
JohnE
I have a gridview that has a column that changes color onmouseover. But, I
need to have the row return back to the original color in the onmouseout.
The rows alternate backgroundcolor. Here is the code (_RowDataBound) that is
currently in play;
e.Row.Cells[4].Attributes.Add("onmouseover",
"this.style.cursor='pointer'; this.style.backgroundColor='Gainsboro';
this.style.color='blue'");
e.Row.Cells[4].Attributes.Add("onmouseout",
"this.style.color='black'");
I just added the Gainsboro background color then found out what I had in the
onmouseout was for only every other row cell that had that color.
What can I use to have the cell return back to the original color?
Thanks...John
need to have the row return back to the original color in the onmouseout.
The rows alternate backgroundcolor. Here is the code (_RowDataBound) that is
currently in play;
e.Row.Cells[4].Attributes.Add("onmouseover",
"this.style.cursor='pointer'; this.style.backgroundColor='Gainsboro';
this.style.color='blue'");
e.Row.Cells[4].Attributes.Add("onmouseout",
"this.style.color='black'");
I just added the Gainsboro background color then found out what I had in the
onmouseout was for only every other row cell that had that color.
What can I use to have the cell return back to the original color?
Thanks...John