Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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: http://geekswithblogs.net/venkatx5/archive/2010/11/30/what-is-document-sets-in-sharepoint-2010.aspx

share|improve this answer
add comment

Your Answer

 
discard

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.