likhtin
Programmer
- Mar 31, 2006
- 8
Hi All
I am trying add to standart binding navigator some button. I add "Save" button. In event click it call method Save() of form
private void Save()
{
try
{
AppStart.setarithabort(this.tbAccountTableAdapter.Connection);
this.tbAccountTableAdapter.Update(this.dsInvestorAccount.tbAccount);
MessageBox.Show("Changes are saved");
}
catch (Exception ex)
{
MessageBox.Show("Error is happend. Please, let know programmer \n" + ex.Message);
}
}
If I call this method from button on form it works. if I call this method from button on Binding Navigator update of tabl does not happens, it shoes however message box. What do I do wrong?
Thanks in advance
I am trying add to standart binding navigator some button. I add "Save" button. In event click it call method Save() of form
private void Save()
{
try
{
AppStart.setarithabort(this.tbAccountTableAdapter.Connection);
this.tbAccountTableAdapter.Update(this.dsInvestorAccount.tbAccount);
MessageBox.Show("Changes are saved");
}
catch (Exception ex)
{
MessageBox.Show("Error is happend. Please, let know programmer \n" + ex.Message);
}
}
If I call this method from button on form it works. if I call this method from button on Binding Navigator update of tabl does not happens, it shoes however message box. What do I do wrong?
Thanks in advance