# C1.Win.FlexGrid.GridPrinter.Header

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_GridPrinter_Header_" data-uid="C1.Win.FlexGrid.GridPrinter.Header*">Header Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_GridPrinter_Header_" data-uid="C1.Win.FlexGrid.GridPrinter.Header*"></a>
<h4 id="C1_Win_FlexGrid_GridPrinter_Header" data-uid="C1.Win.FlexGrid.GridPrinter.Header">Header</h4>
<div class="markdown level1 summary"><p>Gets or sets a string that contains the page headers.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string Header { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Header As String</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_GridPrinter_Header_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The string may be divided by tab characters into up to three sections. The sections are then
left, center, and right-aligned at the top of each page.</p>
<p>The string may contain placeholders "{0}" and "{1}" which are replaced with the current
page number and total page count.</p>
<p>Use the <a class="xref" href="C1.Win.FlexGrid.GridPrinter.HeaderFont.html#C1_Win_FlexGrid_GridPrinter_HeaderFont">HeaderFont</a> property to select the font used to render the header.</p>
</div>
<h5 id="C1_Win_FlexGrid_GridPrinter_Header_examples">Examples</h5>
<p>The code below specifies a right-aligned header with a &quot;Page n of m&quot; display using a 10-point Tahoma font.</p>
<pre><code class="lang-csharp">_flex.Header = "\t\tPage {0} of {1}";
_flex.HeaderFont = new Font("Tahoma", 10);
_flex.PrintGrid("Header");</code></pre>

</div>
