Ok so I need to build a visual web part (Has to be Server side and done in visual studio c#) that shows a document library. On selection of the document library, the web part must output the entire folder structure of the document library

What you guys suggest? I was thinking of using a tree view but I am struggling to figure out how to populate it. Any help would be gratefully appreciated.


  • Exactly what are the requirements that your web part should meet? As it stands now, it's difficult to understand why you should develop a custom web part instead of using the out of the box ones. Is achieving the tree view display mode your primary need/goal? – BlueSoul Sep 19 '13 at 9:43

You could probably use SPGridView, its a SharePoint version of the ASP.NET GridView. You can't populate that client side, but you may populate a dummy row on the server and the use that as a template for adding additinal rows client side

or use the following link to built tree view webpart

  1. http://www.codeproject.com/Articles/37530/Document-Library-Tree-View-Web-Part-for-SharePoint
| improve this answer | |
  • Hey i meant server side :P... so I will take a look at it thanks. – Gerhardus Aug 8 '13 at 11:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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