Wednesday 27 June 2012


Adding Columns to a Provisioned List



You can use the SharePoint Foundation object model to programmatically add columns to provisioned lists.

To add a column to a provisioned list

  1. Use the Fields property to access the collection of list columns on the specified list. This method returns anSPFieldCollection object.
  2. Use one of the following methods of the returned SPFieldCollection object to add a new column to the list: