Customizing Data Connection UI

Calling applications can exercise some customization opportunities on the Data Connection dialog box.

Altering dialog box titles and header labels

The calling application can modify dialog box Title Bar text and header labels on the Data Source dialog box and the Data Connection dialog box to reflect a custom data provider, or to reflect the state of the selected data source.

For example, the titles and header labels can differ depending whether the dialog box is shown on first run, that is, to select a data source, or in response to clicking the Change button to change the data source.

The calling application can also specify text that appears on the Accept button on the Choose Data Source dialog box (for example, "Continue >>"), as well as on the Add Connection dialog box (for example, "Connect").

Specifying data sources and data providers

The caller is responsible for providing the appropriate set of data sources and supporting data providers shown in the Choose Data Source dialog box. As such, calling applications can specify exactly which data sources and providers are available and how they are represented in the dialog box.

Setting the initial connection string

The calling application can set the initial connection string recognized by the selected data source/data provider pair by setting the connection string property value. Setting the initial connection string has the effect of pre-populating the Add Connection dialog box with the specified value.

See Also

Reference

Microsoft.Data.ConnectionUI

IVsDataConnectionUIControl

IVsDataConnectionProperties