Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove node from treeview

Status
Not open for further replies.

fredodman

Programmer
Jun 7, 2008
15
0
0
US
New Problem. I'm trying to remove a node from a treeview via a button with this line of code.

TreeView.Nodes.Remove(TreeView.SelectedNode)

It is in a webform and I have tried so many different ways, none of them working. If anyone has any advice I would be most grateful.

Fred
 
1. when are you removing the node?
2. are you binding the treeview, or adding nodes manually?
3. are you using viewstate and postbacks? if yes, are you checking for postback before binding?

you will need to provide more code to diagnose the problem.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top