Murray Brown
asked on
ASP.net Where do I put AddHandler code
Hi. In my ASP.net project I need to add a handler as follows. Where should I put this? In the page load event?
' Hook up RowIslandDataBound event
AddHandler Me.WebHierarchicalDataGrid1.RowIslandDataBound, AddressOf WebHierarchicalDataGrid1_RowIslandDataBound
Protected Sub WebHierarchicalDataGrid1_RowIslandDataBound(ByVal sender As Object, ByVal e As RowIslandEventArgs) Handles WebHierarchicalDataGrid1.RowIslandDataBound
If e.RowIsland.DataMember = "SqlDataSource1_DefaultView" Then
' Access a PARENT cell value
Dim cellValue As String = e.RowIsland.Rows(0).Items(1).Value.ToString()
End If
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER