C# DataGridView 编辑单元格保存时防止单元格在编辑状态而产生空值

DataGridViewCell cell=this.dataGridView.CurrentCell;
this.dataGridView.EndEdit();
this.CurrentCell = null;
原文地址:https://www.cnblogs.com/junjie94wan/p/2554870.html