Skip to main content
All docs
V25.1
  • DataSourceSettings.AllowAddDataSource Property

    Hides the Add Data Source button in the Field List and the Add Data Source menu command.

    Namespace: DevExpress.XtraReports.Configuration

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    #Declaration

    [DataMember(Name = "allowAddDataSource")]
    public bool AllowAddDataSource { get; set; }

    #Property Value

    Type Description
    Boolean

    True to show the Add Data Source button and command; otherwise, false.

    #Property Paths

    You can access this nested property as listed below:

    Object Type Path to AllowAddDataSource
    ReportDesignerSettingsBase
    .DataSourceSettings .AllowAddDataSource

    #Remarks

    The following image shows the Field List in the Web End-User Report Designer when the AllowAddDataSource property is set to true (default value):

    ReportDesignerDataSourceSettings Default Values

    The following image shows the Field List in the Web End-User Report Designer when the AllowAddDataSource property is set to false:

    ReportDesignerDataSourceSettings.AllowAddDataSource

    The following element is hidden:

    web-designer-field-list-add-data-source-button

    See Also