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

When I create a List Instance in Sharepoint, it allows me to add a view of that List as a Web Part, via the UI.

Example:

enter image description here

How can I add this web part programmatically via the SPWebPartManager ? (I cannot find this webpart in the Site collection web part gallery)

If this is not possible then what alternatives do I have that deliver the same functionality?

share|improve this question
add comment

1 Answer 1

There is a lot of places on the web that explain how to do this. This one was at the top of my google search, see if it helps you out: http://stackoverflow.com/questions/1588019/programmatically-insert-a-list-as-a-webpart-in-a-webpart-page-in-wss-3-0

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.