# FarPoint.Win.Spread.SheetView.SetColumnAllowFilter

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_SetColumnAllowFilter_" data-uid="FarPoint.Win.Spread.SheetView.SetColumnAllowFilter*">SetColumnAllowFilter Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_SetColumnAllowFilter_" data-uid="FarPoint.Win.Spread.SheetView.SetColumnAllowFilter*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_SetColumnAllowFilter_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.SetColumnAllowFilter(System.Int32,System.Boolean)">SetColumnAllowFilter(int, bool)</h4>
<div class="markdown level1 summary"><p>Sets whether the specified column on this sheet allows filtering.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetColumnAllowFilter(int column, bool allowFilter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetColumnAllowFilter(column As Integer, allowFilter As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">allowFilter</span></td>
      <td><p>Whether to allow filtering for the specified column</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_SetColumnAllowFilter_" data-uid="FarPoint.Win.Spread.SheetView.SetColumnAllowFilter*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_SetColumnAllowFilter_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.SetColumnAllowFilter(System.Int32,System.Int32,System.Boolean)">SetColumnAllowFilter(int, int, bool)</h4>
<div class="markdown level1 summary"><p>Sets whether the specified columns on this sheet allow filtering.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetColumnAllowFilter(int column, int count, bool allowFilter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetColumnAllowFilter(column As Integer, count As Integer, allowFilter As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of first column to set</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>Number of columns to set</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">allowFilter</span></td>
      <td><p>Whether to allow filtering for the specified columns</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Specified column index is out of range; must be between -1 and the total number of columns</p>
</td>
    </tr>
  </tbody>
</table>
</div>
