R
rwerkhoven
Not sure if the subject covers the story to well, but I hope someone
can help me with this little problem. I have a div that turns switches
to visible and invisible when going over a row in a datagrid. I shows
some information about the hightlighted product. For every row there
is a div generated with it's own id.
Now the problem is, when you want to put an onmouseout event in a
table row, you have to do it something like this:
Private Sub viewGrid_ItemDataBound(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
viewGrid.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
e.Item.Attributes.Add("onmouseout", "hide(this, ds" &
prodId & ")")
End If
End Sub
But I can't seem to get the ID filled with the id I retrieve from
tablerow where I fill datagrid with.
Does anyone have an idea of how to do this?
Thanks,
Ricky
can help me with this little problem. I have a div that turns switches
to visible and invisible when going over a row in a datagrid. I shows
some information about the hightlighted product. For every row there
is a div generated with it's own id.
Now the problem is, when you want to put an onmouseout event in a
table row, you have to do it something like this:
Private Sub viewGrid_ItemDataBound(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.DataGridItemEventArgs) Handles
viewGrid.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType =
ListItemType.AlternatingItem Then
e.Item.Attributes.Add("onmouseout", "hide(this, ds" &
prodId & ")")
End If
End Sub
But I can't seem to get the ID filled with the id I retrieve from
tablerow where I fill datagrid with.
Does anyone have an idea of how to do this?
Thanks,
Ricky