Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Newbie: Tree view help

Reply
Thread Tools

Newbie: Tree view help

 
 
clsmith66
Guest
Posts: n/a
 
      11-17-2004
Is there a click event for the tree view control or does any one know how to
create one?
 
Reply With Quote
 
 
 
 
Mohamed El Ashmawy
Guest
Posts: n/a
 
      11-20-2004
Did you try to use the SelectedIndexChange of the treeview control?
It has an argument: TreeViewSelectEventArgs which provides you with the
index newnode being selected. (e.newNode returns the index of the selected
node. You could use TreeView.GetNodeFromIndex(string index) to get a
reference of the seelcted node).

For example,
create the SelectedIndexChange for the treeview and add the following code
in it:
TreeNonde tn = TreeView1.GetNodeFromIndex(e.NewNode)
This line would return to you the node that was selected

Regards
Mohamed El Ashmawy
MEA Developer Support Center
ITWorx on behalf of Microsoft EMEA GTSC

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
abt tree view in asp.net can i hide the tree nodes ? raki ASP .Net 1 06-24-2009 11:45 AM
Help With Old EZ-TREE Family Tree Program Jeff Wisnia Computer Support 7 07-24-2007 11:13 AM
tree view of table please help Ex-Em-El XML 1 07-08-2004 11:10 PM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM
B tree, B+ tree and B* tree Stub C Programming 3 11-12-2003 01:51 PM



Advertisments