¿Cómo puedo poner Varios Attributes a un DataGrid en ASP?
Quiero que un DataGrid cuando le pase el mouse por arriba la fila se sobre y que le ponga el cursor del mouse.
ya tengo la rutina creada pero solo puedo poner uno de los dos atributos o que me sobre la fila o que me ponga el cursor del mouse no se como poner los dos a que se vean aquí le mando la pequeña rutina que estoy usando:
Sub DGEmpleado_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor='lavender'")
e.Item.Attributes.Add("onmouseover", "this.style.cursor = 'hand'")
If e.Item.ItemType = ListItemType.Item Then
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='ghostwhite'")
Else
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor='ghostwhite'")
End If
End If
End Sub
