关于此更新数据代码的设计
try{ this.Validate(); this.customersBindingSource.EndEdit(); this.customersTableAdapter.Update(this.northwindDataSet.Customers); MessageBox.Show("Update successful");}catch (System.Exception ex){ MessageBox.Show("Update failed");}