数据更新问题,我在前台更新了数据,但在后台没有更改。。。!!!!!!!!
数据更新问题,我在前台更新了数据,但在后台没有更改。。。!!!!!!!!
private void btnSave_Click(object sender, System.EventArgs e)
{
try
{
// End the Current edit. if you do not do this, when the user makes a
// change and then clicks the Save button prior to stepping to another
// records, the changes will not be propagated.
this.BindingContext[dtEmployeeInfo].EndCurrentEdit();
// Update the database with the changes made to the local resident DataSet.
da.Update(this.dtEmployeeInfo);
MessageBox.Show("Database successfully updated.",
"Custom Formatting Handler Demo", MessageBoxButtons.OK,
MessageBoxIcon.Information);
}
catch(Exception exp)
{
MessageBox.Show("There was an error when attempting to update " +
"the database: " + exp.Message,
this.Text, MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
private void btnSave_Click(object sender, System.EventArgs e)
{
try
{
// End the Current edit. if you do not do this, when the user makes a
// change and then clicks the Save button prior to stepping to another
// records, the changes will not be propagated.
this.BindingContext[dtEmployeeInfo].EndCurrentEdit();
// Update the database with the changes made to the local resident DataSet.
da.Update(this.dtEmployeeInfo);
MessageBox.Show("Database successfully updated.",
"Custom Formatting Handler Demo", MessageBoxButtons.OK,
MessageBoxIcon.Information);
}
catch(Exception exp)
{
MessageBox.Show("There was an error when attempting to update " +
"the database: " + exp.Message,
this.Text, MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
...全文
相关推荐
javaweb前台+后台界面模板
这是我个人从网上下载或者试问同事要的,总共包括32个后台界面模板,还有将近十个前台界面的模板,好的模板在编程中会省事许多,特意拿出来共享。
json的基本传值方式(从前台到后台,再从后台到前台)
自己因为被json传值累得十分痛苦,所以痛定思痛,在实现了一个基本的传值方式后,在此上传资源!下载用过的朋友请多多指出不恰当的地方!
企业黄页网站(前台+后台+数据库)
进公司做的第一个初步的网站系统(企业黄页网站) 大家可以看看啦 ...
KTV点歌系统(前台、后台)
本KTV点歌系统是分为前台与后台,前台是给用户点歌用的,后台是管理员管理歌曲的
Android判断当前App是在前台还是在后台
主要为大家详细介绍了Android判断当前App是在前台还是在后台的方法,感兴趣的小伙伴们可以参考一下


