BaseFieldControl.RenderFieldForDisplay method

Renders the field for noneditable display.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Overridable Sub RenderFieldForDisplay ( _
    output As HtmlTextWriter _
)
'Usage
Dim output As HtmlTextWriter

Me.RenderFieldForDisplay(output)
protected virtual void RenderFieldForDisplay(
    HtmlTextWriter output
)

Parameters

Remarks

The default implementation renders the field as it is rendered on a list view page. The DisplayTemplate is used, if it is not a null reference (Nothing in Visual Basic). If it is a null reference (Nothing in Visual Basic), the schema of the list field is used.

Override the default implementation only when you need the field to render differently on a display form from how it renders on a list view.

See also

Reference

BaseFieldControl class

BaseFieldControl members

Microsoft.SharePoint.WebControls namespace