private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            
            //dataGridView1.CurrentCell = dataGridView1[4, 0];            if (dataGridView1.CurrentCell.ColumnIndex == 1)
            {
                dataGridView1.CurrentCell = dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[4];
            }
            else if (dataGridView1.CurrentCell.ColumnIndex==4)
            {
                dataGridView1.CurrentCell = dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[1];
            }
        }
为什么dataGridView1列切换焦点时,不能切换到同一行?
为什么我这样写,每次按enter键的时候都是切换到下一行指定的列,而不是同一行的那列?
请大虾们赐教、帮忙。