# GrapeCity.ActiveReports.Design.Designer.GridY

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Designer_GridY_" data-uid="GrapeCity.ActiveReports.Design.Designer.GridY*">GridY Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_GridY_" data-uid="GrapeCity.ActiveReports.Design.Designer.GridY*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_GridY" data-uid="GrapeCity.ActiveReports.Design.Designer.GridY">GridY</h4>
<div class="markdown level1 summary"><p>Gets or sets a value representing the vertical spacing between grid lines in the designer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int GridY { 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.int32">int</a></td>
      <td><p>The distance, in designer units, between each horizontal grid line. Must be greater than 0.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_GridY_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property affects the alignment and placement of controls on the design surface.
This property is applicable only when working with Section Reports in the designer.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_Designer_GridY_examples">Examples</h5>
<p>The following code demonstrates how to set the grid spacing:</p>
<pre><code class="lang-csharp">designer.GridX = 4;
designer.GridY = 2;</code></pre>

<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Thrown when the set value is less than or equal to 0, as grid spacing must be a positive integer.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
