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)
Available in Sandboxed Solutions: No

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