Now to the problem - even though both datagridviews have their own BindingNavigatorSaveItem_Click method, with code pointing out their respective bindingsources... it´s not possible to save changes from the second datagridview to the database!
Anyone seen this? Any suggestions what to do?
I solved it like this (I thank mr/mrs/miss dretzlaff17 who started up some processes in what´s left of my doped brain)
private void tableMeLikeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
try
{
this.Validate();
this.tableMeLikeBindingSource.EndEdit();
// IMPORTANT: the following predefined generic Update command
// does NOT work (sometimes)
// this.tableAdapterManager.UpdateAll(this.rESOURCE_DB_1DataSet);
// instead we explicitely points out the right table adapter and updates
// only the table of interest...
this.tableMeLikeTableAdapter.Update(this.rESOURCE_DB_1DataSet.TableMeLike);
}
catch (Exception ex)
{
myExceptionHandler.HandleExceptions(ex);
}
}