# C1.Win.FlexGrid.CellStyle.DataMap

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_CellStyle_DataMap_" data-uid="C1.Win.FlexGrid.CellStyle.DataMap*">DataMap Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_CellStyle_DataMap_" data-uid="C1.Win.FlexGrid.CellStyle.DataMap*"></a>
<h4 id="C1_Win_FlexGrid_CellStyle_DataMap" data-uid="C1.Win.FlexGrid.CellStyle.DataMap">DataMap</h4>
<div class="markdown level1 summary"><p>Gets or sets an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.idictionary">IDictionary</a> used to associate cell values with display values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public IDictionary DataMap { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Property DataMap As IDictionary</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_CellStyle_DataMap_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the cell is editable, this list of values is used to populate the drop-down
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.combobox">ComboBox</a> used to edit the cell. In this case, the order of the items in the
combo list is determined by the order of the elements in the dictionary.</p>
<p>The most common dictionary class, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.hashtable">Hashtable</a>, uses arbitrary order. 
If you want control over the item order, use a different dictionary class such as
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.listdictionary">ListDictionary</a>.</p>
<p>The C1FlexGrid assembly also includes a <a class="xref" href="C1.Win.FlexGrid.MultiColumnDictionary.html">MultiColumnDictionary</a> class, 
which can be used to create multi-column and data-bound dictionaries.</p>
</div>
</div>
