ActiveReports 8
IsDirty Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class : IsDirty Property

Glossary Item Box

Sets or returns the current state of the report layout.  This property is set to True when any changes are made to the report layout since it was last saved.


Visual Basic (Declaration) 
Public Property IsDirty As System.Boolean
public System.bool IsDirty {get; set;}


This property is typically used by the End-User Report Designer control to determine whether the current report layout needs to be saved.


NOTE:  The following is incomplete code.  You would need to add your own code to handle the user's answer via the MessageBox.
C#Copy Code
private void mnuExit_Click(object sender, System.EventArgs e)
    if (((GrapeCity.ActiveReports.SectionReport)this.reportdesigner.Report).IsDirty == true)
        MessageBox.Show("Do you want to save your report?");
Visual BasicCopy Code
Private Sub mnuExit_Click(sender As Object, e As System.EventArgs)
	If DirectCast(Me.reportdesigner.Report, GrapeCity.ActiveReports.SectionReport).IsDirty = True Then
		MessageBox.Show("Do you want to save your report?")
	End If
End Sub


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also