Preventing Enter button to go to next cell in a datagrid

foxygeek

Newcomer
Joined
Oct 21, 2004
Messages
2
Ok i need some real help here, i have looking online on different forums trying to figure this out and i just can't seem to get the results i need. I need to able prevent going to the next cell in a datagrid when the user presses the enter key while editing the cell. I have created a class MyDataGrid that inherits the DataGrid control. I did this becuase i what i fouond in other forums. I overridie to function ProcessCmdKey and ProcessKeyPreview and still once i start to type in the cell and hit enter it still goes to the next cell

I have tired many variations if any body has any idea please help me, thank you
 
Back
Top