Share via

BaseFieldControl.RenderFieldForDisplay method

Renders the field for noneditable display.

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


Protected Overridable Sub RenderFieldForDisplay ( _
    output As HtmlTextWriter _
Dim output As HtmlTextWriter

protected virtual void RenderFieldForDisplay(
    HtmlTextWriter output



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


BaseFieldControl class

BaseFieldControl members

Microsoft.SharePoint.WebControls namespace