# C1.Win.Input.MultiColumnCombo.ISupportUnboundMode.AddItem

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Input_MultiColumnCombo_ISupportUnboundMode_AddItem_" data-uid="C1.Win.Input.MultiColumnCombo.ISupportUnboundMode.AddItem*">AddItem Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Input_MultiColumnCombo_ISupportUnboundMode_AddItem_" data-uid="C1.Win.Input.MultiColumnCombo.ISupportUnboundMode.AddItem*"></a>
<h4 id="C1_Win_Input_MultiColumnCombo_ISupportUnboundMode_AddItem_System_String_" data-uid="C1.Win.Input.MultiColumnCombo.ISupportUnboundMode.AddItem(System.String)">AddItem(string)</h4>
<div class="markdown level1 summary"><p>Adds a new item to the end of view in the unbound mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void AddItem(string newItem)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub AddItem(newItem As String)</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">newItem</span></td>
      <td><p>A string containing the data for the new row. Items are separated by the value of the <a class="xref" href="C1.Win.Input.MultiColumnCombo.ISupportUnboundMode.AddItemSeparator.html#C1_Win_Input_MultiColumnCombo_ISupportUnboundMode_AddItemSeparator">AddItemSeparator</a> property.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Input_MultiColumnCombo_ISupportUnboundMode_AddItem_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method will add columns to the view so that all values from the <code class="paramref">newItem</code> get into the view.</p>
</div>
<h5 id="C1_Win_Input_MultiColumnCombo_ISupportUnboundMode_AddItem_System_String__examples">Examples</h5>
<p>The code below adds 10 rows and 3 columns to the view.</p>
<pre><code class="lang-csharp">multiCombo.AddItemSeparator = ",";
for (int i = 0; i &lt; 10; i++)
  multiCombo.AddItem($"1val{i},2val{i},3val{i}");</code></pre>

</div>
