BindingContext doesn't update?

  • Thread starter Thread starter al
  • Start date Start date
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
 
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??
 
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
 
Back
Top