# C1.Win.FlexGrid.C1FlexGridBase.LeftCol

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_LeftCol_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.LeftCol*">LeftCol Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_LeftCol_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.LeftCol*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_LeftCol" data-uid="C1.Win.FlexGrid.C1FlexGridBase.LeftCol">LeftCol</h4>
<div class="markdown level1 summary"><p>Gets or sets the first visible column in the scrollable area.</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 int LeftCol { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Property LeftCol As Integer</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_LeftCol_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Setting the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.LeftCol.html#C1_Win_FlexGrid_C1FlexGridBase_LeftCol">LeftCol</a> property causes the grid to scroll horizontally 
so that the given column becomes the leftmost visible column. This is often useful when 
you want to synchronize two or more grids so that when one of them scrolls, the other 
scrolls as well. To scroll vertically, use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.TopRow.html#C1_Win_FlexGrid_C1FlexGridBase_TopRow">TopRow</a> property.</p>
<p>When setting this property, the largest possible column number is the total 
number of columns minus the number of columns that will fit the display. Attempting 
to set <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.LeftCol.html#C1_Win_FlexGrid_C1FlexGridBase_LeftCol">LeftCol</a> to a greater value will cause the grid to set it to the 
largest possible value (no error will occur).</p>
<p>The value returned by the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.LeftCol.html#C1_Win_FlexGrid_C1FlexGridBase_LeftCol">LeftCol</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.TopRow.html#C1_Win_FlexGrid_C1FlexGridBase_TopRow">TopRow</a> properties 
may correspond to partially visible rows or columns.</p>
<p>Use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.LeftCol.html#C1_Win_FlexGrid_C1FlexGridBase_LeftCol">LeftCol</a> and <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.TopRow.html#C1_Win_FlexGrid_C1FlexGridBase_TopRow">TopRow</a> properties to scroll using 
cells as units. Use the <a class="xref" href="C1.Win.FlexGrid.Util.BaseControls.ScrollableControl.ScrollPosition.html#C1_Win_FlexGrid_Util_BaseControls_ScrollableControl_ScrollPosition">ScrollPosition</a> property to scroll the grid using 
pixel units.</p>
<p>To ensure that a given cell is visible, use the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.ShowCell.html#C1_Win_FlexGrid_C1FlexGridBase_ShowCell_System_Int32_System_Int32_">ShowCell(int, int)</a> method.</p>
</div>
</div>
