# C1.Win.FlexGrid.MultiColumnDictionary.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor*">MultiColumnDictionary Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_String_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor(System.String)">MultiColumnDictionary(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an unbound <a class="xref" href="C1.Win.FlexGrid.MultiColumnDictionary.html">MultiColumnDictionary</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public MultiColumnDictionary(string items)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(items 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">items</span></td>
      <td><p>String that contains the items, delimited by pipe characters (&quot;|&quot;).
Each item may contain multiple columns, delimited by tabs (vbTab or '\t').</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor causes the map to show all columns when the editor is dropped down and only the
first column when the editor is closed or inactive.</p>
</div>


<a id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_String_System_Int32_System_Boolean_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor(System.String,System.Int32,System.Boolean)">MultiColumnDictionary(string, int, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of an unbound <a class="xref" href="C1.Win.FlexGrid.MultiColumnDictionary.html">MultiColumnDictionary</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public MultiColumnDictionary(string items, int displayColumn, bool autoKeys)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(items As String, displayColumn As Integer, autoKeys 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">items</span></td>
      <td><p>String that contains the items. Items are delimited by pipe characters (&quot;|&quot;).
Each item may contain multiple columns, delimited by tabs (vbTab or '\t').</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">displayColumn</span></td>
      <td><p>Index of the column that is displayed in the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">autoKeys</span></td>
      <td><p>True if keys are to be automatically generated, false if the items themselves are
to be used as keys. Note that in the latter case, duplicate items are not allowed.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_ComponentModel_ITypedList_System_String_System_String___System_Int32_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor(System.ComponentModel.ITypedList,System.String,System.String[],System.Int32)">MultiColumnDictionary(ITypedList, string, string[], int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a bound <a class="xref" href="C1.Win.FlexGrid.MultiColumnDictionary.html">MultiColumnDictionary</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public MultiColumnDictionary(ITypedList list, string keyColumn, string[] columnNames, int displayColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(list As ITypedList, keyColumn As String, columnNames As String(), displayColumn As Integer)</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.componentmodel.itypedlist">ITypedList</a></td>
      <td><span class="parametername">list</span></td>
      <td><p>Data source object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">keyColumn</span></td>
      <td><p>Name of the data source column that contains unique keys.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">columnNames</span></td>
      <td><p>Array with the names of the columns that are included in the map.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">displayColumn</span></td>
      <td><p>Name of the column that is displayed in the grid.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_ComponentModel_ITypedList_System_String_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor(System.ComponentModel.ITypedList,System.String)">MultiColumnDictionary(ITypedList, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a bound <a class="xref" href="C1.Win.FlexGrid.MultiColumnDictionary.html">MultiColumnDictionary</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public MultiColumnDictionary(ITypedList list, string keyColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(list As ITypedList, keyColumn 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.componentmodel.itypedlist">ITypedList</a></td>
      <td><span class="parametername">list</span></td>
      <td><p>Data source object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">keyColumn</span></td>
      <td><p>Name of the data source column that contains unique keys.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_ComponentModel_ITypedList_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor causes the map to show all columns when the editor is dropped down and only the
first column when the editor is closed or inactive.</p>
</div>


<a id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_Data_DataTable_System_String_System_String___System_Int32_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor(System.Data.DataTable,System.String,System.String[],System.Int32)">MultiColumnDictionary(DataTable, string, string[], int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a bound <a class="xref" href="C1.Win.FlexGrid.MultiColumnDictionary.html">MultiColumnDictionary</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public MultiColumnDictionary(DataTable table, string keyColumn, string[] columnNames, int displayColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(table As DataTable, keyColumn As String, columnNames As String(), displayColumn As Integer)</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.data.datatable">DataTable</a></td>
      <td><span class="parametername">table</span></td>
      <td><p>Data source object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">keyColumn</span></td>
      <td><p>Name of the data source column that contains unique keys.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">columnNames</span></td>
      <td><p>Array with the names of the columns that are included in the map.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">displayColumn</span></td>
      <td><p>Name of the column that is displayed in the grid.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_MultiColumnDictionary__ctor_System_Data_DataTable_System_String_" data-uid="C1.Win.FlexGrid.MultiColumnDictionary.#ctor(System.Data.DataTable,System.String)">MultiColumnDictionary(DataTable, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a bound <a class="xref" href="C1.Win.FlexGrid.MultiColumnDictionary.html">MultiColumnDictionary</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public MultiColumnDictionary(DataTable table, string keyColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(table As DataTable, keyColumn 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.data.datatable">DataTable</a></td>
      <td><span class="parametername">table</span></td>
      <td><p>Data source object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">keyColumn</span></td>
      <td><p>Name of the data source column that contains unique keys.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
