private void dicadmasDataGridView_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Return) { if (dicadmasDataGridView.CurrentCell.ColumnIndex == dicadmasDataGridView.ColumnCount - 1) dicadmasDataGridView.CurrentCell = dicadmasDataGridView[0, dicadmasDataGridView.CurrentCell.RowIndex + 1]; else dicadmasDataGridView.CurrentCell = dicadmasDataGridView[dicadmasDataGridView.CurrentCell.ColumnIndex + 1, dicadmasDataGridView.CurrentCell.RowIndex]; e.SuppressKeyPress = true; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)