G
Guest
Hello anyone,
I found the following strange behaviour when I tried to update my database
with an added row of the dataset. Stepping (debug mode) through the
RowUpdated event of the dataadpter I noticed the following event values:
AffectedRows=1
Statement = INSERT
rowstate = Modified
It is the last one that surprised me. How is it possible that the new
rowstate has become Modfied where it should remain Added until I call
AcceptChanges.
This behaviour causes problems since I update by dataset in parts:
deleted childs
deleted parents
inserted parents
modfied parents
inserted childs
updated childs
After the child (or parent) is inserted it is resubmitted since it has
changed to Modifed. (I use skipcurrentrow so no Acceptchanges are done
between the different updates)
Hope someone can shine their light on this.
WiZZiX
I found the following strange behaviour when I tried to update my database
with an added row of the dataset. Stepping (debug mode) through the
RowUpdated event of the dataadpter I noticed the following event values:
AffectedRows=1
Statement = INSERT
rowstate = Modified
It is the last one that surprised me. How is it possible that the new
rowstate has become Modfied where it should remain Added until I call
AcceptChanges.
This behaviour causes problems since I update by dataset in parts:
deleted childs
deleted parents
inserted parents
modfied parents
inserted childs
updated childs
After the child (or parent) is inserted it is resubmitted since it has
changed to Modifed. (I use skipcurrentrow so no Acceptchanges are done
between the different updates)
Hope someone can shine their light on this.
WiZZiX