SqlDataSourceUIHelper.ConfigureConnectionParameters<TModel>(SqlDataSource, ConfigureConnectionContext, Action<IWizardCustomization<TModel>>) Method

Invokes the Connection Editor to edit the parameters used to establish a connection to a data base.

Namespace: DevExpress.DataAccess.UI.Sql

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

Declaration

public static bool ConfigureConnectionParameters<TModel>(
    this SqlDataSource sqlDataSource,
    ConfigureConnectionContext context,
    Action<IWizardCustomization<TModel>> customizeWizard
)
    where TModel : class, ISqlDataSourceModel, new()
<ExtensionAttribute>
Public Shared Function ConfigureConnectionParameters(Of TModel As {Class, ISqlDataSourceModel, New})(
    sqlDataSource As SqlDataSource,
    context As ConfigureConnectionContext,
    customizeWizard As Action(Of IWizardCustomization(Of TModel))
) As Boolean

Parameters

Name Type Description
sqlDataSource SqlDataSource

A SqlDataSource object, specifying the database connection.

context ConfigureConnectionContext

A ConfigureConnectionContext object, specifying the editor settings.

customizeWizard Action<IWizardCustomization<TModel>>

A Action delegate of an object implementing the IWizardCustomization<TModel> interface.

Type Parameters

Name
TModel

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.

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

See Also