Solved

treeview sort

Posted on 2013-02-05
2
325 Views
Last Modified: 2013-02-05
want my treeview to show in descending order.
using file and folder system to show files in treeview.

treeview1.sort does not even show. there is no class called sort.

   Dim rootDir As New DirectoryInfo(Server.MapPath("~//"))

            ' Enter the RecurseNodes function to recursively walk the directory tree.
            Dim RootNode As TreeNode = RecurseNodes(rootDir)
            ' Add this Node hierarchy to the TreeNode control.
            Treeview1.Nodes.Add(RootNode)
0
Comment
Question by:sevensnake77
2 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 38857308
You have to build your own sort method, check:
http://stackoverflow.com/questions/776162/asp-net-treeview-sort
0
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 38857426
tks
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question