DataGridViewCell cell= this.dataGridView.CurrentCell; this.dataGridView.EndEdit(); this.CurrentCell = null; 转载于:https://www.cnblogs.com/junjie94wan/archive/2012/06/19/2554870.html