# C1.Win.List.ListBase.C1ListBase.Rebind

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_ListBase_C1ListBase_Rebind_" data-uid="C1.Win.List.ListBase.C1ListBase.Rebind*">Rebind Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_ListBase_C1ListBase_Rebind_" data-uid="C1.Win.List.ListBase.C1ListBase.Rebind*"></a>
<h4 id="C1_Win_List_ListBase_C1ListBase_Rebind" data-uid="C1.Win.List.ListBase.C1ListBase.Rebind">Rebind()</h4>
<div class="markdown level1 summary"><p>Re-establishes the connection with the bound data source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Rebind()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Rebind()</code></pre>
</div>
<h5 id="C1_Win_List_ListBase_C1ListBase_Rebind_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
This method re-establishes the connection with the bound data source, 
causing the control to perform the same operations that occur when you set the DataSource property at design time. 
</p>
<p>
If you have not modified the list columns at design time, then executing the ReBind method will reset the columns, headings, and other properties based on the current data source. 
</p>
<p>
To force the list to reset the column bindings even if the columns were modified at design time, 
invoke the <a class="xref" href="C1.Win.List.ListBase.Frame.ClearFields.html#C1_Win_List_ListBase_Frame_ClearFields">ClearFields()</a> method immediately before ReBind. 
Conversely, to cancel the list's automatic layout response and force the list to use the current 
column/field layout, invoke the <a class="xref" href="C1.Win.List.ListBase.C1ListBase.HoldFields.html#C1_Win_List_ListBase_C1ListBase_HoldFields">HoldFields()</a> method immediately before ReBind.
</p>
</div>


<a id="C1_Win_List_ListBase_C1ListBase_Rebind_" data-uid="C1.Win.List.ListBase.C1ListBase.Rebind*"></a>
<h4 id="C1_Win_List_ListBase_C1ListBase_Rebind_System_Boolean_" data-uid="C1.Win.List.ListBase.C1ListBase.Rebind(System.Boolean)">Rebind(bool)</h4>
<div class="markdown level1 summary"><p>Reinitializes list with data from its data source.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Rebind(bool holdFields)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Rebind(holdFields 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.boolean">bool</a></td>
      <td><span class="parametername">holdFields</span></td>
      <td><p>True to preserves current column layout.  False retrieves the schema from the datasource.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
