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

How can we switch views of the list which is created on visual studio? SharePoint designer solution or code solution?

share|improve this question

If you have created a List Definition from visual studio you can open the Schema.xml and modify the views, this Msdn documentation shows you how:

It is also possible modify views directly in the GUI :

If you are talking about showing a control for changing views in the GUI you should get that control OOTB when you add a list view web part, otherwise look in to the list view selector control:

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.