# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate*">ItemTemplate Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate">ItemTemplate</h4>
<div class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> used to display each item.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataTemplate ItemTemplate { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ItemTemplate As DataTemplate</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a></td>
      <td><p>The template that specifies the visualization of the data objects. The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate">ItemTemplate</a> property is only valid when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.UseMultipleColumn.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_UseMultipleColumn">UseMultipleColumn</a> is <code>tree</code>.
You can use the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate">ItemTemplate</a> property to specify the visual representation of your data.
<a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate">ItemTemplate</a> is particularly useful when you bind the ItemsSource to data.
You use a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> to define the appearance of your data objects.
The content of your <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.datatemplate">DataTemplate</a> becomes the visual structure of your data objects.
If you do not set the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ItemTemplate.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ItemTemplate">ItemTemplate</a>, the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.html">GcComboBox</a> displays the string representation of the objects in a collection.</p>
</div>
</div>
