Hi...I am working on a webpage using VB.net...i am using a data grid which displays data from SQL table. I am using <AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle> for different colors for alternate rows. Now I want to change the color of the row the mouse is over to some other color say Silver. I am doing this with the following code.
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
If Not IsNothing(e.Item.DataItem) Then
The problem is once the mouse leaves the row i am not able to get the previous color of the row. Can someone help me how to get the original color back. Thank You.