I think that you probably need a sub-class of the DataGridViewTextBoxEditingControl (or your own control that implements the IDataGridViewEditingControl) and then override the EditingControlWantsInputKey method. That should work.
I tried to do a similar thing that you've tried below, and could not get it to work either, so I'm thinking that my above suggestion may be your only option.
~~Bonnie
>hi all
>i am trying to handle keypress event but i am not getting result like after press enter key
> Private Sub dataGridView_EditingControlShowing(ByVal sender As Object, ByVal e As DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing
> AddHandler e.Control.KeyDown, AddressOf Control_KeyPress
> End Sub
>
> Private Sub Control_KeyPress(ByVal sender As Object, ByVal e As KeyEventArgs)
> MsgBox(e.KeyCode)
>
>
> 'If e.KeyChar = Chr(13) Then
> ' 'If (Char.IsNumber(e.KeyChar)) Then
> ' MsgBox("OK")
>
> ' ' //your code here
> 'End If
>
> End Sub