private void StoreDG_CurrentCellDirtyStateChanged(object sender, EventArgs e) { if (StoreDG.IsCurrentCellDirty) { StoreDG.CommitEdit(DataGridViewDataErrorContexts.Commit); } }