# GrapeCity.ActiveReports.SectionReport.IsDirty

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_SectionReport_IsDirty_" data-uid="GrapeCity.ActiveReports.SectionReport.IsDirty*">IsDirty Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_IsDirty_" data-uid="GrapeCity.ActiveReports.SectionReport.IsDirty*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_IsDirty" data-uid="GrapeCity.ActiveReports.SectionReport.IsDirty">IsDirty</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating the report layout state.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public bool IsDirty { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value. <code>true</code> if any changes have been made to the report layout since it was last saved; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_IsDirty_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property determines whether to save the current report layout. The default value is <code>false</code>.
This property is used inside the report designer, thus you should generally avoid using it directly.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_IsDirty_examples">Examples</h5>
<pre><code class="lang-csharp">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();
	}
}</code></pre>

</div>
