Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

DataFormWebPart.AddDataSourceControls method

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

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

protected virtual void AddDataSourceControls()

A pointer to the DataFormWebPart on the SPDataSourceView must be saved because FormContext is not set and ExecuteSelect(DataSourceSelectArguments) needs to inspect the PAGETYPE.

© 2015 Microsoft