combit List & Label 30 - .NET Help
combit.Reporting.DataProviders Namespace / SqlConnectionDataProvider Class / SqlConnectionDataProvider Constructor / SqlConnectionDataProvider Constructor(SqlConnection)
The connection to use.
Example


SqlConnectionDataProvider Constructor(SqlConnection)
Initializes the data provider to access all elements available from the connection.
Syntax
'Declaration
 
Public Function New( _
   ByVal connection As SqlConnection _
)
 

Parameters

connection
The connection to use.
Example
SqlConnection conn = new SqlConnection(Properties.Settings.Default.ConnectionString);
SqlConnectionDataProvider provider = new SqlConnectionDataProvider(conn);
LL.DataSource = provider;
LL.Design();
Dim conn As New SqlConnection(Properties.Settings.[Default].ConnectionString)
Dim provider As New SqlConnectionDataProvider(conn)
LL.DataSource = provider
LL.Design()
Requirements

See Also