WebForms Treeview

  • Thread starter Thread starter jl04279
  • Start date Start date
J

jl04279

Guest
There is no "onClick event"!

How do i get my treeView to do somthing!

I doesnt respond on this

Private Sub TreeView1_Expand(ByVal sender As Object, ByVal e
As Microsoft.Web.UI.WebControls.TreeViewClickEventArgs)
Handles TreeView1.Expand

MsgBox("Expand")

End Sub
 
try

Private Sub TreeView1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TreeView1.Click
Code here

if you need to get the click in a treeviewNode
If Not (TreeView1.SelectedNode Is Nothing) Then
Code for a click in a treeviewNode

End If

End Sub
 
Back
Top