title: VB Datagrid Get New Value
body: <p>Now I want to get the new value what I put into my datagrid; however, I always get the old value if I keys Up or Down.</p>
  
  <p>Here is my KeyDownEvent Function:</p>
  
  <pre><code>Private Sub grd_MyGridKeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles grd.MyGridKeyDown
          If e.KeyCode = Keys.Left Or e.KeyCode = Keys.Enter Or e.KeyCode = Keys.Right Or e.KeyCode = Keys.Up Or e.KeyCode = Keys.Down Then
              Me.grd.Item(Me.grd.CurrentRowIndex, 4) = Me.grd.Item(Me.grd.CurrentRowIndex, 2) * Me.grd.Item(Me.grd.CurrentRowIndex, 3)
          End If
      End Sub
  </code></pre>