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

ASPxReportDesigner.ShouldDisposeDataSources Property

Specifies whether or not report data sources should be disposed when calling the ASPxReportDesigner.Dispose method.

Namespace: DevExpress.XtraReports.Web

Assembly: DevExpress.XtraReports.v18.2.Web.WebForms.dll

Declaration

[SRCategory(ReportStringId.CatBehavior)]
[DefaultValue(true)]
public bool ShouldDisposeDataSources { get; set; }

Property Value

Type Default Description
Boolean **true**

true, to dispose data sources; otherwise, false.

Remarks

When the ShouldDisposeDataSources and ASPxReportDesigner.ShouldDisposeReport properties are set to true, calling the ASPxReportDesigner.Dispose method of the ASPxReportDesigner also disposes all registered data sources (available in the ASPxReportDesigner.DataSources collection) and the current report (opened using the ASPxReportDesigner.OpenReport or ASPxReportDesigner.OpenReportXmlLayout method).

See Also