Share via


ListViewWebPart.CreateChildControls method

Creates a set of child controls that are contained in the ListViewWebPart.

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Protected Overrides Sub CreateChildControls
'Usage

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

Remarks

This override creates toolbar controls and a Gantt control if the ViewType is Gantt or a SPCalendarView control if the ViewType is Calendar.

See also

Reference

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace