# C1.WPF.FlexGrid.ColumnValueConverter.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor*">ColumnValueConverter Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor*"></a>
<h4 id="C1_WPF_FlexGrid_ColumnValueConverter__ctor" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor">ColumnValueConverter()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.ColumnValueConverter.html">ColumnValueConverter</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColumnValueConverter()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor*"></a>
<h4 id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_System_Collections_IDictionary_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor(System.Collections.IDictionary)">ColumnValueConverter(IDictionary)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.ColumnValueConverter.html">ColumnValueConverter</a> based on a dictionary.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColumnValueConverter(IDictionary dictionary)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(dictionary As IDictionary)</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.collections.idictionary">IDictionary</a></td>
      <td><span class="parametername">dictionary</span></td>
      <td><p>Dictionary that contains the data (key) and display values for a grid column.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor*"></a>
<h4 id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_System_Collections_ICollection_System_Boolean_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor(System.Collections.ICollection,System.Boolean)">ColumnValueConverter(ICollection, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.ColumnValueConverter.html">ColumnValueConverter</a> based on a simple value list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColumnValueConverter(ICollection values, bool exclusive)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(values As ICollection, exclusive 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.collections.icollection">ICollection</a></td>
      <td><span class="parametername">values</span></td>
      <td><p>List with valid values for a grid column.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">exclusive</span></td>
      <td><p>Whether the column may contain values not included in the
<code class="paramref">values</code> list.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor*"></a>
<h4 id="C1_WPF_FlexGrid_ColumnValueConverter__ctor_System_Collections_IEnumerable_System_String_System_String_" data-uid="C1.WPF.FlexGrid.ColumnValueConverter.#ctor(System.Collections.IEnumerable,System.String,System.String)">ColumnValueConverter(IEnumerable, string, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.ColumnValueConverter.html">ColumnValueConverter</a> based on an object collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColumnValueConverter(IEnumerable values, string valuePath, string displayMemberPath)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(values As IEnumerable, valuePath As String, displayMemberPath 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.collections.ienumerable">IEnumerable</a></td>
      <td><span class="parametername">values</span></td>
      <td><p>Collection of objects that contain the key and display values for the column.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">valuePath</span></td>
      <td><p>Name of the property that contains the values stored in the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">displayMemberPath</span></td>
      <td><p>Name of the property that contains the values displayed in the grid.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
