CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    173

    Question Need help with treeview web control

    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?


  2. #2
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    173

    Thumbs up

    Solved.
    Preston Park
    CTT+, MCT, MCSD
    http://www.prestonpark.com/

  3. #3
    Join Date
    Apr 2000
    Location
    Dallas, TX
    Posts
    173

    Exclamation

    Ok, for those of you who were wondering, here's the solution:
    Code:
    tvwMyTree.DataBind()
    pjp
    Preston Park
    CTT+, MCT, MCSD
    http://www.prestonpark.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured