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

dataset. has changes problem

Status
Not open for further replies.

AndreAraujo

Programmer
Feb 14, 2002
62
PT
hi everyone, i have a form that is binded to 2 datatables in the same dataset.
i need to determine if tha values where changed when i move to the next record or when leave the form.
I use the DS.haschanges but i get haschanges= true when i move to the next record but the data was not changed.
and DS.haschanges= false when i change the data and press my save button.
the code in my Save button
Code:
Me.BindingContext(Ds.Tables).EndCurrentEdit()
if Ds.HasChanges Then
  If MsgBox("Save?", MsgBoxStyle.Question +                msgBoxStyle.YesNo) = MsgBoxResult.Yes Then
                update_data()' function update
  End If
End If
Any ideas.

Thanks
Andre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top