Grigoriy

Grigoriy

  • NA
  • 2
  • 0

Button on BindingNavigator executed method of Form just partialy. How it could be?

Jun 14 2006 8:19 AM
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 table does not happen, it shows however message box. What do I do wrong?

Thanks in advance