gn123

1) Is there a way to automatically apply all site columns to all lists and libraries in a site

2) Is there a way to set site columns as read only



Re: SharePoint - Development and Programming Site columns

smc750

1) Programatically you could do it but there is nothing in the UI. However, f all your libraries are using the default "Document" content type or using content types that inherit from "Document" then you could add the site columns to this content type and make sure the "update all content types inheriting from this type" is set to "yes" and they should all show up in these libraries.

2) No.






Re: SharePoint - Development and Programming Site columns

Ton Stegeman

1) I would create a FeatureReceiver to do that on activation, if the other suggestion (UI) is not good enough.

2) Yes there is, the <Field> element has a readonly attribute. But you have to set it to true in the XML files in the features, or through code. In the user interface, the site column reference at a content type has an option "Hidden". Might help