コード例 #1
0
        // Employees - Confirm edit directly in datagrid
        private async void dataGridViewEmployees_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
            if (this.editEmployee.EmployeeID == -1)
            {
                return;
            }

            dataGridViewEmployees.CommitEdit(DataGridViewDataErrorContexts.Commit);
            await _repo.UpdateEmployeeAsync(this.editEmployee);
        }