# GrapeCity.Win.Spread.InputMan.CellType.FieldsEditorControl.OnGotFocus

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_FieldsEditorControl_OnGotFocus_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.FieldsEditorControl.OnGotFocus*">OnGotFocus Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_FieldsEditorControl_OnGotFocus_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.FieldsEditorControl.OnGotFocus*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_FieldsEditorControl_OnGotFocus_System_EventArgs_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.FieldsEditorControl.OnGotFocus(System.EventArgs)">OnGotFocus(EventArgs)</h4>
<div class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.gotfocus">GotFocus</a> event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void OnGotFocus(EventArgs e)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub OnGotFocus(e As EventArgs)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a></td>
      <td><span class="parametername">e</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a> that contains the event data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.EditBase.OnGotFocus.html#GrapeCity_Win_Spread_InputMan_CellType_EditBase_OnGotFocus_System_EventArgs_">EditBase.OnGotFocus(EventArgs)</a></div>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_FieldsEditorControl_OnGotFocus_System_EventArgs__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Raising an event invokes the event handler through a delegate.</p>
<p></p>
The <b>OnGotFocus</b> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
<p></p><b>Notes to Inheritors:</b><p></p>
When overriding <b>OnGotFocus</b> in a derived class, be sure to call the base class's <b>OnGotFocus</b> method so that registered delegates receive the event.
</div>
</div>
