Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V21.2
  • DataSourceWizardOptions.DataSourceTypes Property

    Gets or sets the data source types available for data binding from the Data Source Wizard.

    Namespace: DevExpress.Snap.Options

    Assembly: DevExpress.Snap.v21.2.dll

    NuGet Package: DevExpress.Win.Snap

    Declaration

    [Browsable(false)]
    [DefaultValue(DataSourceTypes.All)]
    public DataSourceTypes DataSourceTypes { get; set; }

    Property Value

    Type Default Description
    DataSourceTypes All

    One of the DataSourceTypes enumeration members.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to DataSourceTypes
    SnapControlOptions
    .DataSourceWizardOptions .DataSourceTypes

    Remarks

    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.

    Note

    Take into account the following limitations:

    • The Data Federation data source is available in the Data Source Wizard only if a snap report contains at least one data source.
    • The DevExpress Snap uses the open-source Newtonsoft.Json library to provide JSON data at runtime. We recommend you to install the required NuGet package to use this data source type.

    The following example demonstrates how to display only the Entity Framework and Excel File items in the Data Source Wizard.

    snapControl1.Options.DataSourceWizardOptions.DataSourceTypes = DataSourceTypes.EntityFramework | DataSourceTypes.Excel;
    

    The image below shows the result of the code.

    DataSourceWizardCustomization

    See Also