BindingContext doesn't update?

A

al

Greetings,

I have a form that is bound to a dataset through its bindingcontext.
What I do is I change more than one record then update the dataset.
But the dataset does not save more than one. That is, dataset only
updates the last changed record. How can I have all changes saved to
the database??


'This only saves last changed record, but not all changed ones

BindingContext(DataSet11, "employees").EndCurrentEdit()
SqlDataAdapter2.Update(DataSet11, "Employees")

MTIA,
Grawsha
 
A

al

Miha Markic said:
Hi al,

How are you changing records?


I just call EndCurrentEdit at the end of all records editing (one
time). Is this why I'm not getting all changes saved to the db??
 
I

IbrahimMalluf

K

Kathleen Dollard

Al,

In addition to other suggestions, insure that you don't have AcceptChanges
in your code, or can explain exactly why you are using it and where.

Kathleen
 

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