SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am making a visual webpart for SharePoint 2010 that displays files and folders from a document library, and I want to keep ordering to folders. I want to be able to sort folders so I need a way to store the order number of a folder. If I check on sharepoint in the browser, I don't see a way to add any info to it.

Is there a way to do this programatically in c#?

I want to avoid keeping the order number as a part of the folder name, something like: "1. Folder A"

Does anyone know if this is possible?

share|improve this question

If you are working with SharePoint Server 2010 or later you can consider using the Document Set feature. A Document Set is essentially a folder that can be defined with a content type (includes meta-data) as well as other useful things like workflow.

share|improve this answer

Folders in SharePoint are unnecessary pain in the ass. Folders will

  • Not help your case in searching
  • Will increase the Url length

As Mike said, use the documents set! Document sets inherit form folders and help manage group of documents as a single entity. It is nothing more than a content type that can be attached to any document library and make use of it's features.

See example:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.