i want to not let the user press the delete key on a data grid. in the datagrid keypress event, i have tried everything...

VB Code:
  1. Private Sub DataGrid1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles DataGrid1.KeyPress
  2.         If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Delete) Then
  3.             MsgBox("delete")
  4.         End If
  5.         If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Enter) Then
  6.             MsgBox("enter")
  7.         End If
  8.     End Sub
  9.  
  10.  
  11.     Private Sub DataGrid1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGrid1.KeyDown
  12.         Select Case e.KeyCode
  13.             Case Keys.Delete
  14.                 MessageBox.Show("You pressed delete")
  15.         End Select
  16.     End Sub

the enter is the only thing that works. I am wondering, is there an event with the delete key, and second, how can you not let a user delete a row from a datagrid, but keep a datagrid editable.

thanks,

jeff