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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_SelectedIndex_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.SelectedIndex*">SelectedIndex Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_SelectedIndex_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.SelectedIndex*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_SelectedIndex" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.SelectedIndex">SelectedIndex</h4>
<div class="markdown level1 summary"><p>Gets or sets the displayed index of the selected item. This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Localizability(LocalizationCategory.NeverLocalize)]
[Bindable(true)]
public int SelectedIndex { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Localizability(LocalizationCategory.NeverLocalize)&gt;
&lt;Bindable(True)&gt;
Public Property SelectedIndex As Integer</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.int32">int</a></td>
      <td><p>The displayed index of the selected item. The default is -1.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_SelectedIndex_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.SelectedIndex.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_SelectedIndex">SelectedIndex</a> is the display index.</p>
</div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>The selected index is less than -1 or greater than <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.Items.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_Items">Items</a> count.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
