Building Folder Tree

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
gregg1022
Posts: 5
Joined: Tue Oct 28, 2008 1:45 pm

Building Folder Tree

Post by gregg1022 » Tue Oct 28, 2008 1:51 pm

I am trying to get all the folders in a selected repository and create the tree the way you would see it in the Vault GUI. I have tried several ways but the closest I have come is getting the folders but not in the correct order. Seems they are ordered by the when they were created. Is there a way to easily rebuild the folder tree of a repository?
Thanks

shannon

Re: Building Folder Tree

Post by shannon » Tue Oct 28, 2008 2:05 pm

What version are you working with?

Can you give me a snippet of your code to look at?

shannon

Re: Building Folder Tree

Post by shannon » Tue Oct 28, 2008 2:39 pm

I just realized what you're probably missing. Try setting the Sorted property on your tree control to true.

Post Reply