DataFormWebPart.ConnectToDataSourceControl Method

Denotes whether the control that is the data source for this data form Web Part is connected.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overridable Function ConnectToDataSourceControl As Boolean
'Usage
Dim returnValue As Boolean

returnValue = Me.ConnectToDataSourceControl()
protected virtual bool ConnectToDataSourceControl()

Return Value

Type: System.Boolean
true if the connection was successful; otherwise, false.

Remarks

The data source control connects to a data source such as a database, entity class, or middle-tier object and then retrieves or updates data. Any class that implements the IDataSource interface is a data source control. The data source is identified by the DataSourceID property.

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace