Share via


BaseXsltListWebPart.AddDataSourceControls method

Adds the data source controls in the DataSources collection as child controls of the Web Part.

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

Syntax

'Declaration
Protected Overrides Sub AddDataSourceControls
'Usage

Me.AddDataSourceControls()
protected override void AddDataSourceControls()

Remarks

This override gets the data source control associated with the current Web Part and adds it into the child controls. This override saves a pointer to the Web Part on the SPDataSourceView.

See also

Reference

BaseXsltListWebPart class

BaseXsltListWebPart members

Microsoft.SharePoint.WebPartPages namespace