# C1.Win.FlexGrid.C1FlexGridBase.BeforePageBreak

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_FlexGrid_C1FlexGridBase_BeforePageBreak" data-uid="C1.Win.FlexGrid.C1FlexGridBase.BeforePageBreak" class="text-break">BeforePageBreak Event
</h1>
<div class="markdown level0 summary"><p>Fires while the control is being printed to provide control over page breaks.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
<h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforePageBreak_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event RowColEventHandler BeforePageBreak</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event BeforePageBreak As RowColEventHandler</code></pre>
</div>
<h5 class="returns">Returns</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="C1.Win.FlexGrid.RowColEventHandler.html">RowColEventHandler</a></td>
      <td>Fires while the control is being printed to provide control over page breaks.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_BeforePageBreak_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event is fired while the control is being printed with the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.PrintGrid.html#C1_Win_FlexGrid_C1FlexGridBase_PrintGrid_System_String_C1_Win_FlexGrid_PrintGridFlags_">PrintGrid(string, PrintGridFlags)</a>
method to provide control over page breaks.</p>
<p>Set the <b>Cancel</b> parameter to true to indicate that the given <b>Row</b> should 
not be printed at the top of a page. In this case, the control will move the break point up 
and fire the event again until it finds a valid break point. Note that you can only prevent
page breaks, not force them.</p>
</div>
</div>
