Use the DataSourceTypes property to specify the data source types that should be displayed on the "Select the data source type" page of the Data Source Wizard. By default, all options are available in the wizard, so that an end-user can connect to any supported data source. However, if you wish to restrict the number of available data source types, set the DataSourceTypes property to the required combination of DevExpress.Office.Options.DataSourceTypes values.
The following example demonstrates how to display only the Entity Framework and Excel File items in the Data Source Wizard.
C# |
snapControl1.Options.DataSourceWizardOptions.DataSourceTypes = DataSourceTypes.EntityFramework | DataSourceTypes.Excel;
|
VB |
snapControl1.Options.DataSourceWizardOptions.DataSourceTypes = DataSourceTypes.EntityFramework Or DataSourceTypes.Excel
|
The image below shows the result of the code.