//This code raises an foreign key violation error on the people table. private void masterTableBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.masterTableBindingSource.EndEdit(); this.peopleBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.clientsDS); } //this code corrects problem, but shouldn't be necessary. private void peopleDataGridView_Enter(object sender, EventArgs e) { this.Validate(); this.masterTableBindingSource.EndEdit(); this.masterTableTableAdapter.Update(clientsDS.MasterTable); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)