Skip to main content

SqlDataSourceUIHelper.ConfigureConnection(SqlDataSource) Method

Invokes the Connection Editor with the specified settings.

Namespace: DevExpress.DataAccess.UI.Sql

Assembly: DevExpress.DataAccess.v24.1.UI.dll

NuGet Package: DevExpress.DataAccess.UI

Declaration

public static bool ConfigureConnection(
    this SqlDataSource sqlDataSource
)

Parameters

Name Type Description
sqlDataSource SqlDataSource

A SqlDataSource object, specifying the database connection.

Returns

Type Description
Boolean

true, if the dialog was finished by clicking the Finish button; otherwise, false.

Remarks

The following image illustrates the Connection Editor invoked by calling the ConfigureConnection method.

data-access-sql-data-source-ui-helper-connection-editor

The Connection Editor allows an end-user to either specify connection parameters manually, or select an existing connection from the list. If the first option is selected, the next page of the dialog becomes available, prompting an end-user to specify the required connection settings.

data-access-sql-data-source-ui-helper-connection-parameters-editor

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ConfigureConnection(SqlDataSource) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also