# C1.Win.FlexGrid.RowColCollection.MaxSize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_RowColCollection_MaxSize_" data-uid="C1.Win.FlexGrid.RowColCollection.MaxSize*">MaxSize Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_RowColCollection_MaxSize_" data-uid="C1.Win.FlexGrid.RowColCollection.MaxSize*"></a>
<h4 id="C1_Win_FlexGrid_RowColCollection_MaxSize" data-uid="C1.Win.FlexGrid.RowColCollection.MaxSize">MaxSize</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum size for rows and columns in the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int MaxSize { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property MaxSize As Integer</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_RowColCollection_MaxSize_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The MaxSize property limits the maximum size of rows or columns when they are resized by the user or 
adjusted to fit the contents with the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.AutoSizeRows.html#C1_Win_FlexGrid_C1FlexGridBase_AutoSizeRows_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_C1_Win_FlexGrid_AutoSizeFlags_">AutoSizeRows(int, int, int, int, int, AutoSizeFlags)</a> or 
<a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.AutoSizeCols.html#C1_Win_FlexGrid_C1FlexGridBase_AutoSizeCols_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_C1_Win_FlexGrid_AutoSizeFlags_">AutoSizeCols(int, int, int, int, int, AutoSizeFlags)</a> method.</p>
<p>Setting this property to zero disables it.</p>
</div>
</div>
