When the user clicks the save button (button Save PO), I am updating the Binding Source like so: bs Encumbr. The trouble is that it will not save the dgv entries until after the o PO object is saved once.
When I step through the code, I find that bs Encumbr.
Step 2Click on the pin button on right-up side of Data Grid View and click add project Data Source. If you update any cell and click the update button, then the database will be updated.
To delete, select the rows and then press the Delete key and click the update button; the rows will be deleted.
You might wanna take a look at the following articel...
you might find it useful: Data Thanks for your help.
Click 'Update records using a Command Builder ' The variable i gives the number of records updated Dim cmdbuilder As New Odbc.
the if i cast the bindingsource.datasource as an object i see that the changes are there in the dataview but again they weren't posted to the dataset.
Hello Perry, The grid updates its data when it receives the List Changed notification from its data source.
All your insertions, updates, and deletions will be effected by the single button.
I have a Data Grid View (dgv Encumbr) that is bound to a business object dataset property (o PO.