Share via


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)

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