ReadOnly Property in Custom Column Types in Sharepoint

Posted by Ray Booysen on Stack Overflow See other posts from Stack Overflow or by Ray Booysen
Published on 2009-01-23T00:24:43Z Indexed on 2010/03/31 8:33 UTC
Read the original article Hit count: 406

Hey all

I'm creating a custom column in a feature for Sharepoint. It is essentially this:

<Field 
  Type="Integer" 
  ID="<insert guid here>" 
  ReadOnly="true"
  Name="xxx"
  DisplayName="XXX"
  Group="YYY" />

When the field is deployed and attached to a content type, the content type shows no instance of this field being attached. The documentation about ReadOnly is a bit vague but definitely states that the column will be available for viewing in a View. However, when I create a view it is not available.

The moment I remove ReadOnly from the field, it is available on the content type without any problems. Any ideas?

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about moss