title: Down and UP arrow keys not scrolling the current cell in DataGridView
body: <p>I am developing a <code>windows form</code> which contains two controls <code>Textbox</code> and <code>Datagridview</code>. </p>
  
  <p>Now when I first open the form the focus should be on textbox and if I type something it should be appended in textbox. </p>
  
  <p>And if I press the <code>UP/Down arrow key</code> focus should be on <code>DataGridview</code> and the <code>Highlight</code> should move to the next row. </p>
  
  <p>But the problem is it only set the focus to <code>gridview</code> but doesn't select the next row. It scrolls <code>down/UP on next key press</code>. Same if focus is on the <code>GridView</code> and <code>if I start typing alphabets it should be appended to TextBox text</code>, but here also it sets only focus to <code>textbox</code> and on another key press it starts typing text in it.</p>
  
  <p>How to implement this?</p>
  
  <p>Code which I am using is:</p>
  
  <pre><code> if (e.KeyCode== Keys.Down)
              {
                  this.DgAppDetails.Focus();
                  int index = DgAppDetails.CurrentCell.RowIndex;
                  if (index != DgAppDetails.Rows.Count - 1)
                  {
                      if (i == 0)
                      {
                          DgAppDetails.CurrentCell = DgAppDetails.Rows[index+1].Cells[0];
                          i++;
                      }
                  }
              }
  
              else if(e.KeyCode==Keys.Up)
              {
                  this.DgAppDetails.Focus();
                  int index = DgAppDetails.CurrentCell.RowIndex;
                  if (index != 0)
                  {
                      if (i == 0)
                      {
                        DgAppDetails.CurrentCell = DgAppDetails.Rows[index - 1].Cells[0];
                          i++;
                      }
                  }
  
              }
  </code></pre>