SqlDataSource Constructors

The data source that allows you to bind Windows Forms data-aware controls to a database (in read-only mode) using specified data connection options.
Name Parameters Description
SqlDataSource(DataConnectionParametersBase) connectionParameters Initializes a new instance of the SqlDataSource class with the specified connection parameters.
SqlDataSource(String) connectionName Initializes a new instance of the SqlDataSource class with the specified connection name.
See Also