[]
Gets or sets a value indicating the report layout state.
[Browsable(false)]
public bool IsDirty { get; set; }
Type | Description |
---|---|
bool | A bool value. |
This property determines whether to save the current report layout. The default value is false
.
This property is used inside the report designer, thus you should generally avoid using it directly.
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
private void btnExit_Click(object sender, System.EventArgs e)
{
if (sectionReport.IsDirty)
{
MessageBox.Show("Do you want to save your report?");
}
else
{
this.Close();
}
}