Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EndCurrentEdit Required? 1

Status
Not open for further replies.

bernardmanning

Programmer
Oct 14, 2003
61
GB

Hi, this is not really a problem just looking for some reassurance that what I'm doing is correct.

I've got a win form that is using a dataadapter/dataset and a datatable that returns data from sql server.

My controls are bound using the bindmanager and every thing works great, navigation and saves etc.

One thing I'm seeing is that if I make a change to a record via a text box on my form and try to save the edit without moving the record pointer the save doesn't get back into my data table.

If I move off the record and back again and save it works fine.

I've got round this problem by calling ;

Code:
BindingContext(mytable).EndCurrentEdit()
before the calling the ;

Code:
dataadapter.Update ;

method.

Is this what everybody else has had to do? or am I missing something?

Thanks in advance, bernard...
 
Nope that's about it.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Thanks, Christiaan,

Always nice to get some reassurance that you're doing things right!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top