对于DataGridView的回车事件,在网上搜了半天没找到什么好的帖子。自己试着写了一个,运行良好。 private void dgv_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { // Do what you want about the current row. DoSomething(); dgv.CurrentCell = dgv.Rows[dgv.CurrentRow.Index - 1].Cells["Name"]; } }