# C1.C1Excel.XLSheet.GridColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Excel_XLSheet_GridColor_" data-uid="C1.C1Excel.XLSheet.GridColor*">GridColor Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Excel_XLSheet_GridColor_" data-uid="C1.C1Excel.XLSheet.GridColor*"></a>
<h4 id="C1_C1Excel_XLSheet_GridColor" data-uid="C1.C1Excel.XLSheet.GridColor">GridColor</h4>
<div class="markdown level1 summary"><p>Gets or sets the color used to display grid lines.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Color GridColor { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property GridColor As Color</code></pre>
</div>
<h5 id="C1_C1Excel_XLSheet_GridColor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Set this property to <b>Color.Transparent</b> to display the grid lines using the default color.</p>
<p>To hide the grid lines, set the <a class="xref" href="C1.C1Excel.XLSheet.ShowGridLines.html#C1_C1Excel_XLSheet_ShowGridLines">ShowGridLines</a> property to false.</p>
</div>
</div>
