tags:

views:

185

answers:

0

Hi,

I have a infragistics WebHierarchicalDataGrid. It contains two hierarchical bands. I want to add a javascript double click event whenever the row of the second band is clicked. I tried the following. It does not seem to be working.

Protected Sub whdg1_RowIslandDataBound(ByVal sender As Object, ByVal e As Infragistics.Web.UI.GridControls.RowIslandEventArgs) Handles whdg1.RowIslandDataBound

     If e.RowIsland.Level = 1 Then
        For rowIndex As Integer = 0 To e.RowIsland.Rows.Count - 1
            e.RowIsland.Rows(rowIndex).Attributes.Add("OnDblClick", "alert('" &  _
                              e.RowIsland.Rows(rowIndex).Items(3).Text & "')")
        Next
    End If
End Sub

Can anyone help me?

Thanks in advance.

related questions