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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF .Net - Update database from dataset datatable

Status
Not open for further replies.

careysc

Programmer
Nov 3, 2004
3
US
Hello,

I am using Visual Studio .Net developing for handhelds. I am coding in VB.

I have bound the fields on the form back to the datatables in the dataset. What I am doing is changing a value in a field and then I want to save the changes back to the database. I am using the dataset.HasChanges() to see if any changes have been made. When I perform the check it doesn't recognize that the field value has been changed and therefore doesn't update the data back to the database. I have added a messagebox to display the value of the field changed and it is displaying the modified value. Can anyone help to explain why the changes aren't being recognized and what I need to do to get them to be so?
Note: If I select a different row of data and then attempt to save the information it works fine. I have tried using me.bindingcontext("dataset","datatable").position +=1 as a suggestion from someone, but it causes an error. Using me.bindingcontext("datatable").position +=1 didn't seem to do anything.

Thanks,
Carey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top