# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode*">DisplayMode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode">DisplayMode</h4>
<div class="markdown level1 summary"><p>Gets or sets a value that indicates whether the calendar displays a month, year, or decade. 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">public CalendarMode DisplayMode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property DisplayMode As CalendarMode</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarMode.html">CalendarMode</a></td>
      <td><p>A value that indicates what length of time the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.html">GcDropDownCalendar</a> should display.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
        A <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.html">GcDropDownCalendar</a> can display a month, a year, or a decade.
      </p>
<p>
        The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> just can be set to the value between <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.StartDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_StartDisplayMode">StartDisplayMode</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.EndDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_EndDisplayMode">EndDisplayMode</a>.
        When <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> property value is same as <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.StartDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_StartDisplayMode">StartDisplayMode</a>, mouse click and keyboard operation ( Space/Enter ) will select dates according to the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.SelectionMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_SelectionMode">SelectionMode</a>; if <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> property value is higher than <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.StartDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_StartDisplayMode">StartDisplayMode</a>, i.e. DisplayMode: GrapeCity.Windows.InputMan.CalendarMode.Year, StartDisplayMode is GrapeCity.Windows.InputMan.CalendarMode.Month, mouse click and keyboard operation ( Space/Enter ) will work as <b>ZoomIn</b> operation.
      </p>
<p>
        If you set <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> to a value that is less than the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.StartDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_StartDisplayMode">StartDisplayMode</a> property, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is set to <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.StartDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_StartDisplayMode">StartDisplayMode</a>. If you set <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> to a value that is greater than the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.EndDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_EndDisplayMode">EndDisplayMode</a> property, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is set to <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.EndDisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_EndDisplayMode">EndDisplayMode</a>.
      </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.argumentexception">ArgumentException</a></td>
      <td><p>Occurs when value set to the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> property is undefined in the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarMode.html">CalendarMode</a> enumeration.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
