
05/06/2009, 16:16
|
 | | | Fecha de Ingreso: julio-2007 Ubicación: Montevideo (Uruguay)
Mensajes: 919
Antigüedad: 17 años, 7 meses Puntos: 13 | |
Respuesta: GridView Seleccionar fila sin botón Lo que K_Cijo te dice es correcto lo que podes hacerlo directamente sin tener que hacer el script....
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor = '#E8E8E8';")
e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor = 'white';")
End If
End Sub
__________________ Marcelo Davila. :. En Ignorante te conviertes al no preguntar, el que pregunta se nutre... :. |