I
inadsad
Greetings Group:
I got a form with multiple controls that are bound to a dataset, with
two buttons & next/previous. Simply, add button adds a new record and
cancel button undo changes.
On add click event button:
Me.BindingContext(ds1.Tables("MyTable")).EndCurrentEdit()
Me.BindingContext(ds1.Tables("MyTable ")).AddNew()
On Cancel
Me.BindingContext(ds1.Tables("MyTable ")).CancelCurrentEdit()
''''' -> ??? ds1.Tables("MyTable ").RejectChanges()
Issue is that after click on Add the CancelCurrentEdit() undo changes
on some records as I do the next & previous. If I keep both
Cancelcurrent and Rejectchanges then it seems to restore back to
original Ok. Why do I need both? Help!
Ian
I got a form with multiple controls that are bound to a dataset, with
two buttons & next/previous. Simply, add button adds a new record and
cancel button undo changes.
On add click event button:
Me.BindingContext(ds1.Tables("MyTable")).EndCurrentEdit()
Me.BindingContext(ds1.Tables("MyTable ")).AddNew()
On Cancel
Me.BindingContext(ds1.Tables("MyTable ")).CancelCurrentEdit()
''''' -> ??? ds1.Tables("MyTable ").RejectChanges()
Issue is that after click on Add the CancelCurrentEdit() undo changes
on some records as I do the next & previous. If I keep both
Cancelcurrent and Rejectchanges then it seems to restore back to
original Ok. Why do I need both? Help!
Ian