在CurrentCellDirtyStateChanged事件,编写如下代码: Grid1.CommitEdit(DataGridViewDataErrorContexts.Commit); 转载于:https://www.cnblogs.com/mycls/p/10738842.html