ListFormWebPart.CreateChildControls method

Creates the child controls for the ListFormWebPart.

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

[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
protected override void CreateChildControls()

This override creates the child controls for the ListFormWebPart if the Hidden property is false. This override creates different custom content for this Web Part by defining a different TemplateName.

This override calls the base class CreateChildControls() if the Web Part is in design time mode, the form is a legacy form, or the Template property is not defined. Otherwise, it creates a new TemplateContainer based on the values of the ItemContext and PageType properties.