private void btnCustomerUpdate_Click(object sender, EventArgs e) { if (MessageBox.Show("Müşteri Güncellensin mi?", "Müşteri Güncelleniyor...", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { Customer customer = new Customer { CustomerName = tbxCustomerUpdateName.Text, CustomerLastname = tbxCustomerUpdateLastName.Text, City = tbxCustomerUpdateCity.Text, Country = tbxCustomerUpdateCountry.Text, Adress = tbxCustomerUpdateAdress.Text, Phone = tbxCustomerUpdatePhone.Text }; _customerDal.CustomerUpdate(Convert.ToInt32(dgCustomerUpdate.CurrentRow.Cells[0].Value), customer); //MÜŞTERİYİ GÜNCELLE dgCustomerUpdate.DataSource = _customerDal.CustomerList(); //DATAGRİDİ GÜNCELLE } }