# GrapeCity.ActiveReports.SectionReport.LayoutAction

## Content

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



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



<a id="GrapeCity_ActiveReports_SectionReport_LayoutAction_" data-uid="GrapeCity.ActiveReports.SectionReport.LayoutAction*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_LayoutAction" data-uid="GrapeCity.ActiveReports.SectionReport.LayoutAction">LayoutAction</h4>
<div class="markdown level1 summary"><p>Gets or sets the custom action after the current record is rendered.</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 LayoutAction LayoutAction { 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="GrapeCity.ActiveReports.LayoutAction.html">LayoutAction</a></td>
      <td><pre><code>&lt;code&gt;GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.NextRecord | GrapeCity.ActiveReports.LayoutAction.PrintSection&lt;/code&gt;
</code></pre>
<p>or
<code>GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.PrintSection</code></p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_LayoutAction_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Right now only <a class="xref" href="GrapeCity.ActiveReports.LayoutAction.html#GrapeCity_ActiveReports_LayoutAction_NextRecord">NextRecord</a> can be changed to duplicate rows like in the sample.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_LayoutAction_examples">Examples</h5>
<pre><code class="lang-csharp">int counter=0;
private void Detail_Format(object sender, System.EventArgs eArgs)
{ //repeat each row two times
	counter = counter + 1;
	if (counter &lt;= 2)
	{
		this.LayoutAction = GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.PrintSection;
	}
	else
	{
		this.LayoutAction = GrapeCity.ActiveReports.LayoutAction.MoveLayout | GrapeCity.ActiveReports.LayoutAction.NextRecord | GrapeCity.ActiveReports.LayoutAction.PrintSection;
		counter = 0;
	}
}</code></pre>

</div>
