this.masterTableAdapter.Fill(this.timeattDataSet.master);
对于“ timeattDataSet”,我将属性设置如下 复制到输出目录=不复制
然后我在输入屏幕中进行编辑并保存
try
{
this.Validate();
this.masterBindingSource.EndEdit();
this.masterTableAdapter.Update(this.timeattDataSet.master);
this.timeattDataSet.master.AcceptChanges();
MessageBox.Show("Saved successfully");
}
catch (System.Exception )
{
MessageBox.Show("Save failed");
}