private void button1_Click(object sender, EventArgs e) { DataRow riga; int ID; ID = Convert.ToInt32(label7.Text); DataTable TabellaAbbinamenti; TabellaAbbinamenti = target2021DataSet.Tables["AbbinamentiArticoli"]; riga = TabellaAbbinamenti.Rows.Find(ID); riga.BeginEdit(); riga["Qta"] = textBox3.Text; riga["Percentualelastra"] = textBox4.Text; riga.EndEdit(); abbinamentiArticoliTableAdapter.Update(target2021DataSet.AbbinamentiArticoli); this.Close(); }