Click to See Complete Forum and Search --> : Need help with treeview web control


pjpark
May 28th, 2002, 10:42 PM
I have a project that uses the treeview web control. I want the treeview to change based on a list box selection.

When the user makes a selection, I create or use an existing XML file as the TreeNodeSrc; however, the treeview doesn't change. I have tried adding other controls and changing properties and have done so successfully. I even tried dynamically creating the treeview control and adding it to the form. It gets added but ignores the TreeNodeSrc property. I can add items dynamically to the treeview through the nodes collection, but I'd rather just set the Src to the appropriate XML file.

I am of course running everything at the server so I don't understand why the update isn't happening.

Any guesses?

:confused: :confused: :confused:

pjpark
May 31st, 2002, 11:28 AM
Solved.

pjpark
May 31st, 2002, 01:51 PM
Ok, for those of you who were wondering, here's the solution:
tvwMyTree.DataBind()

pjp