[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.IsDirty

IsDirty Property

IsDirty

Gets or sets a value indicating the report layout state.

Declaration
[Browsable(false)]
public bool IsDirty { get; set; }
Property Value
Type Description
bool

A bool value. true if any changes have been made to the report layout since it was last saved; otherwise, false.

Remarks

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.

Examples
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();
	}
}