Hi, I have problems with navigation between records of a dataset after deleting one
or more and not aply acceptChanges.I have a form with several textBoxes that are bounded to
a dataset and the MoveNext, MovePrevious, MoveLast and MoveFirst Buttons. The problem is
when I delete a record(let's say the third from my dataset) (with delete method not remove)
I get this behaviour: when I try to move to the first record it's ok, the same for the
second but if I try to move to the third the position of the bindingManagerBase
increses but the textBoxes display the same record: the second. But if I move to
the last record the textBoxes display the last record but the position of the
bindingManagerBase is not count -1 but count-2. If I delete two records it leads to the same
behavior from the first record textBoxes display the information concording with the position
of the bindingManagerBase till it encounters the record previous to the first deleted
and then just the position of bindingManagerBAse increases. I don't
want to use AcceptChanges because then if I update the dataAdapter later this has no effect
(the deleted rows are not deleted).
If anyone has any ideea pls
write to me. Thank U
or more and not aply acceptChanges.I have a form with several textBoxes that are bounded to
a dataset and the MoveNext, MovePrevious, MoveLast and MoveFirst Buttons. The problem is
when I delete a record(let's say the third from my dataset) (with delete method not remove)
I get this behaviour: when I try to move to the first record it's ok, the same for the
second but if I try to move to the third the position of the bindingManagerBase
increses but the textBoxes display the same record: the second. But if I move to
the last record the textBoxes display the last record but the position of the
bindingManagerBase is not count -1 but count-2. If I delete two records it leads to the same
behavior from the first record textBoxes display the information concording with the position
of the bindingManagerBase till it encounters the record previous to the first deleted
and then just the position of bindingManagerBAse increases. I don't
want to use AcceptChanges because then if I update the dataAdapter later this has no effect
(the deleted rows are not deleted).
If anyone has any ideea pls
write to me. Thank U