Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ASPxReportDesigner.ShouldDisposeReport Property

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

Namespace: DevExpress.XtraReports.Web

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

NuGet Package: DevExpress.Web.Reporting

#Declaration

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

#Property Value

Type Default Description
Boolean true

true to dispose the report along with the Report Designer; otherwise false.

#Remarks

When the ASPxReportDesigner.ShouldDisposeDataSources and 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