C# DataGridView 编辑单元格保存时防止单元格在编辑状态而产生空值 DataGridViewCell cell=this.dataGridView.CurrentCell;this.dataGridView.EndEdit();this.CurrentCell = null;