# C1.WPF.Grid.FlexGrid.AutoSizeMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Grid_FlexGrid_AutoSizeMode_" data-uid="C1.WPF.Grid.FlexGrid.AutoSizeMode*">AutoSizeMode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Grid_FlexGrid_AutoSizeMode_" data-uid="C1.WPF.Grid.FlexGrid.AutoSizeMode*"></a>
<h4 id="C1_WPF_Grid_FlexGrid_AutoSizeMode" data-uid="C1.WPF.Grid.FlexGrid.AutoSizeMode">AutoSizeMode</h4>
<div class="markdown level1 summary"><p>Gets or sets which cells should be taken into account when auto-sizing a row or column.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GridAutoSizeMode AutoSizeMode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property AutoSizeMode As GridAutoSizeMode</code></pre>
</div>
<h5 id="C1_WPF_Grid_FlexGrid_AutoSizeMode_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>By default, the grid will automatically set the column width based on the content of the header and data cells in the column. This property allows you to change that to include only the headers or only the data.</p>
</div>
</div>
