Skip to main content
A newer version of this page is available. .

SqlDataSourceUIHelper Class

Provides functionality to configure the connection to a SqlDataSource in code.

Namespace: DevExpress.DataAccess.UI.Sql

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

Declaration

public static class SqlDataSourceUIHelper

Remarks

The SqlDataSourceUIHelper provides an application programming interface (API) to invoke various tools available to end-users for configuring the data connection settings in an application.

  • To manage the data connection settings without writing any code, use the Query Builder of a SqlDataSource component.

    After a SQL Data Source is created, you can configure it by using the commands available in its smart tag.

    data-access-winforms-sql-data-source-component-smart-tag-commands

  • To configure a data connection in code, use the extension methods of the SqlDataSourceUIHelper class (requires referencing the DevExpress.DataAccess.v18.1.UI.dll assembly for an application).

    For example, after adding two or more queries to a data connection, it becomes possible to configure their data relations by using the Master-Detail Relations Editor (invoked by calling the SqlDataSourceUIHelper.ManageRelations method of the SqlDataSourceUIHelper class).

    sql-data-source-manage-relations-master-detail-relation-editor

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SqlDataSourceUIHelper class.

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.

Inheritance

Object
SqlDataSourceUIHelper
See Also