Datagrid don't update corectly

G

Guest

My problem is in datagrid witch don't want to update allways? Problem is : i have to select row in datagrid (witch i have added new or edit ) and than click on button (datagrid1.update (dataset)) and only then changes will update. If i make change on some data and then go to some other row changes will be lost? ho to solve this ?
 
C

Cor

Hi Voja,

Probably 2 errors,
You do somewhere in your program dataset.acceptchanges on the wrong place
and before you do an update you do not do

DirectCast(BindingContext(ds.Tables(0)), CurrencyManager).EndCurrentEdit()

Cor
 

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

Top