How post changes to current row?

B

Bill

I have a DataGrid bound to a DataTable. If the user makes changes to a
row and does not move off of that row before I call DataAdapter.Update
the changes are not made to the database. How, in code, can I post the
changes to the current row to the underlying DataTable so that calling
DataAdapter.Update will update the database?

Note that I have tried calling DataGrid.EndEdit and that does not work.
I have also tried calling CurrencyManager.EndCurrentEdit and that does
not work. The only thing that does work is changing the value of
CurrencyManager.Postion to move to another row, however, that does not
work when there is only one row in the table.

This should be easy so I must be missing something.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top