title: VB.NET - Focus first row and first cell of DataGridView
body: <p>Good morning,</p>
  
  <p>I have a form with two textbox and a DataGridView.
  I'm used to fill my controls then i press Tab to switch to the next one.</p>
  
  <p>However, when i switch from my textbox to my DataGridView, the selected cell is the second one of the first row => DTG.Rows(0).Cells(1).
  I need to enter on the DTG.Rows(0).Cells(0) to fill my DTG without using my mouse.</p>
  
  <p>I tried the code bellow :</p>
  
  <pre><code>Public Sub txtBoxTest_Leave() Handles txtBoxTest.Leave
          DTG.Focus()
          DTG.CurrentCell = DTG(0, 0)
          DTG.BeginEdit(True)
  End Sub
  </code></pre>
  
  <p>The cell seems to be selected, but it is not in editmode.</p>
  
  <p>Modify the edit mode to EditOnEnter does not resolve my problem :</p>
  
  <pre><code>DTG.EditMode = DataGridViewEditMode.EditOnEnter
  </code></pre>
  
  <p>Can someone help me please ?</p>
  
  <p><strong>EDIT :</strong> 
  My datagridview cells are in <code>ReadOnly = False</code>.</p>