Search This Blog

2009-04-30

SPField

What is SPField/How can we use SPField/What are the method and properties of SPField

SPField object represent a field in a list in Sharepoint web site.

Properties:-
Group
Gets or sets the column group to which the field belongs.
Hidden
Gets or sets a Boolean value that specifies whether the field is displayed in the list.
Id
Gets the GUID of the field.
InterName
Gets the internal name that is used for the field.
StaticName
Gets or sets the internal name of the field.
ShowInNewForm
Gets or sets a Boolean value that specifies whether the field is displayed in the form that is used to create list items
ShowInEditForm
Gets or sets a Boolean value that specifies whether the field is displayed in the form that is used to edit list items.
ShowInDisplayForm
Gets or sets a Boolean value that specifies whether the field is displayed in the form for displaying list items.

Method:-

Delete

Update

OnAdded
Occurs after a field is added.


OnUpdated
Occurs after changes are made to a field.
OnDeleting
Occurs when a field is being deleted.

No comments: