SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

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 trying to find a good sample code on updating the fields that are displayed within the default view.

The current code creates a list on the fly and then adds the needed columns.

Once the list is created and the new fields added, I need a way to make sure the new fields are displayed in the default view.

The issue I am having is that after I create the list and new fields, the default view is only displaying the Title field and nothing else.


share|improve this question
Configuring fields in a list does not automatically add those fields to a view. I have not had to configure a view via the web services though, and I none of the items are jumping out at me unless it is done via caml in the list update. – Mike Oryszak Dec 5 '11 at 21:33

There is an attribute on the Method tag called AddToView which can be used when adding fields using UpdateList newFields argument.

share|improve this answer

The SP 2010 Web Services provides calls to work with Lists and Views. The following may be of help to you -

Lists Class and Methods

Views Class and Methods

Code fragment from MSDN showing Views modification and update.

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.