# GrapeCity.Win.Spread.InputMan.CellType.GcTimeSpanCellType.DefaultActiveField

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_GcTimeSpanCellType_DefaultActiveField_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTimeSpanCellType.DefaultActiveField*">DefaultActiveField Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_GcTimeSpanCellType_DefaultActiveField_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTimeSpanCellType.DefaultActiveField*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_GcTimeSpanCellType_DefaultActiveField" data-uid="GrapeCity.Win.Spread.InputMan.CellType.GcTimeSpanCellType.DefaultActiveField">DefaultActiveField</h4>
<div class="markdown level1 summary"><p>Gets or sets the default active field.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[TypeConverter(typeof(GcTimeSpanDefaultActiveFieldInfoTypeConverter))]
public TimeSpanFieldInfo DefaultActiveField { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(GcTimeSpanDefaultActiveFieldInfoTypeConverter))&gt;
Public Property DefaultActiveField As TimeSpanFieldInfo</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.Win.Spread.InputMan.CellType.Fields.TimeSpanFieldInfo.html">TimeSpanFieldInfo</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a> value that indicates the default active field.
<br> The defalut is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_GcTimeSpanCellType_DefaultActiveField_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When the control gets focus, the default active field gets focus.
If the value of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.FieldsEditorControl.HighlightText.html#GrapeCity_Win_Spread_InputMan_CellType_FieldsEditorControl_HighlightText">HighlightText</a> property is <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.HighlightText.html#GrapeCity_Win_Spread_InputMan_CellType_HighlightText_Field">Field</a>, all of the text in the field is selected;
otherwise, the caret only moves to the first input position.</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.arithmeticexception">ArithmeticException</a></td>
      <td><p>The specified field don't exist in the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.TimeSpanFieldCollection.html">TimeSpanFieldCollection</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
