# FarPoint.Win.Spread.TableView.SetColumnNames

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_TableView_SetColumnNames_" data-uid="FarPoint.Win.Spread.TableView.SetColumnNames*">SetColumnNames Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_TableView_SetColumnNames_" data-uid="FarPoint.Win.Spread.TableView.SetColumnNames*"></a>
<h4 id="FarPoint_Win_Spread_TableView_SetColumnNames_System_String___" data-uid="FarPoint.Win.Spread.TableView.SetColumnNames(System.String[])">SetColumnNames(string[])</h4>
<div class="markdown level1 summary"><p>Sets the column names for the table. The count of array names must equal the count of table columns.
Each element must not be null or empty and each element must be unique (not case sensitive) in the array names.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SetColumnNames(string[] names)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SetColumnNames(names As String()) 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.string">string</a>[]</td>
      <td><span class="parametername">names</span></td>
      <td><p>Array of table column names.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>true if set successfully; otherwise, returns false.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
