# C1.Win.FlexGrid.C1FlexGridBase.Cols

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_Cols_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Cols*">Cols Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_Cols_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Cols*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_Cols" data-uid="C1.Win.FlexGrid.C1FlexGridBase.Cols">Cols</h4>
<div class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> objects in the grid.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColumnCollection Cols { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Cols As ColumnCollection</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_C1FlexGridBase_Cols_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Cols.html#C1_Win_FlexGrid_C1FlexGridBase_Cols">Cols</a> property returns a reference to the list of columns
that make up the grid. With this reference, you can add, remove, move, 
and count the columns. For more information on the tasks that can be performed 
with this collection, see the <a class="xref" href="C1.Win.FlexGrid.ColumnCollection.html">ColumnCollection</a> object.</p>
<p>This property is read-only. The grid creates and manages the column collection for you.</p>
<p>Upgrade Note: In the VSFlexGrid ActiveX control, the <b>Cols</b> and <b>FixedCols</b> properties 
corresponded to the number of columns and fixed columns on the grid. In C1FlexGrid, use 
<b>Cols.Count</b> and <b>Cols.Fixed</b> instead.</p>
</div>
</div>
