M
multiformity
So, this is driving me nuts. I have verified that the row that was
added or modified in the datatable was indeed added or edited. The
update methods return value IS 1, indicating that the row I was after
was altered. And for the rest of the execution of the program, the
datatable has the modified value. However, the DB does NOT get modified
at all... As soon as I close and re-run the program the JobsDataTable
reverts back to it's original state... it HAS to be something dumb, I
am about to give up and write out a SQL statement...
private void SaveChanges() {
BackupDataDataSet.JobsDataTable jt = _Adapter.GetData();
object[] objArr = {_JobID, _txtName.Text, _txtDescription.Text,
_txtExcludeList.Text, _txtSourceFolder.Text, _txtDestFolder.Text,
_cbIncludeSubFolders.Checked, _cbCompressFiles.Checked };
jt.BeginLoadData();
jt.LoadDataRow(objArr, false);
int junk = _Adapter.Update(jt);
jt.EndLoadData();
jt.AcceptChanges();
_IsDirty = false;
}
If you want the complete application you can download the zip file (DB
included) at:
http://www.ats-engineers.com/filebackup.zip
It's all in a project already, I am using MS VC# Express....
HELP * sobs uncontrollably *
AB
** Insert Clever Signature Here **
added or modified in the datatable was indeed added or edited. The
update methods return value IS 1, indicating that the row I was after
was altered. And for the rest of the execution of the program, the
datatable has the modified value. However, the DB does NOT get modified
at all... As soon as I close and re-run the program the JobsDataTable
reverts back to it's original state... it HAS to be something dumb, I
am about to give up and write out a SQL statement...
private void SaveChanges() {
BackupDataDataSet.JobsDataTable jt = _Adapter.GetData();
object[] objArr = {_JobID, _txtName.Text, _txtDescription.Text,
_txtExcludeList.Text, _txtSourceFolder.Text, _txtDestFolder.Text,
_cbIncludeSubFolders.Checked, _cbCompressFiles.Checked };
jt.BeginLoadData();
jt.LoadDataRow(objArr, false);
int junk = _Adapter.Update(jt);
jt.EndLoadData();
jt.AcceptChanges();
_IsDirty = false;
}
If you want the complete application you can download the zip file (DB
included) at:
http://www.ats-engineers.com/filebackup.zip
It's all in a project already, I am using MS VC# Express....
HELP * sobs uncontrollably *
AB
** Insert Clever Signature Here **