title: How to prevent an Enter key press from ending EditMode in a DataGridView?
body: <p>I have a custom DataGridView control in a Windows-Forms application.  When a user presses the Enter key, I do not want anything to happen.  I have already overridden the OnKeyPress method in my custom DataGridView to prevent the SelectedCell property from changing.  This works alright when a cell is selected but not being editted.  However, if a cell is in Edit mode when Enter is pressed, the CellEndEdit event is still fired and the SelectedCell property is subsequently changed.  </p>
  
  <p>How can I stop the Enter key from ending Edit Mode on my DataGridView control?</p>