I\'m using a DataGridView in my WinForms application. My main objective is to make the Enter key not move to the next row in the grid. I still want the enter key to validate
if your DataGridView's DataSource is BindingSouce, do this (put this in your Key processing events):
bds.EndEdit();
if your DataGridView's DataSource is DataTable:
this.BindingContext[dgv.DataSource].EndCurrentEdit();