# C1.WPF.Grid.GridAutoSizeMode

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_WPF_Grid_GridAutoSizeMode" data-uid="C1.WPF.Grid.GridAutoSizeMode" class="text-break">GridAutoSizeMode Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies constants that define the row/column auto-sizing behavior.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Grid.html">C1.WPF.Grid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Grid.dll</h6>
  <h5 id="C1_WPF_Grid_GridAutoSizeMode_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Flags]
public enum GridAutoSizeMode</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Flags&gt;
Public Enum GridAutoSizeMode</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_WPF_Grid_GridAutoSizeMode_Both">Both</td>
        <td><p>Autosizing accounts for header and data cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridAutoSizeMode_Cells">Cells</td>
        <td><p>Autosizing accounts for data cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridAutoSizeMode_Headers">Headers</td>
        <td><p>Autosizing accounts for header cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridAutoSizeMode_None">None</td>
        <td><p>Autosizing does not take neither cells nor headers into account.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
