Sub CustomersGridView_RowDataBound(ByVal sender As Object, ByVal e As
GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
'change the hover effect over the first cell in the row
e.Row.Cells(1).Attributes.Add("onmouseover","this. className='something'")
e.Row.Cells(1).Attributes.Add("onmouseout","this.c lassName='somethingelse'")
End If
End Sub
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"Matt Colegrove" wrote:
How does one set a Mouseover/Mouseout event on a cell in a GridView? I can
successfully assign these events to be active on a row in a GridView.
I can do this with a DataGrid, by adding code to the OnItemBoundDataGrid event