post changes to dataset with code

  • Thread starter Thread starter Osmosis
  • Start date Start date
O

Osmosis

I have a truedbgrid with AllowAddNew = False

The changes I make to a record are only submitted after I move to another
record.
This could pose problems if there is only one record in the table (because
then you can't change the cursor)

How can I take care of this programmatically ? I want to submit the changes
to my dataset with code.

Sounds like a simple thing, but since I'm pretty new to VB.NET and ADO.NET
 
I got what I needed by calling "EndCurrentEdit" on the bindingcontext
before the updates were sent to the data adapter


Cheers,
P.
 
Back
Top