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

TabPage updates not saved

Status
Not open for further replies.

jenip

Programmer
Jan 10, 2003
5
US
I have a Windows Forms app in VB.Net 2002. The form has a tabcontrol with 2 tabpages. Textboxes on both pages are bound to same dataset. User updates textboxes on Page 2, then selects Page 1 and clicks Save button. Usually this works fine, but sometimes Page 2 data is not saved. Here is the code in Save button:
Me.BindingContext(ViewSummons).EndCurrentEdit()

If Me.DsSummons1.HasChanges Then
ViewSummons.Table.GetChanges()
DatSummons.Update(DsSummons1, "Summons")
DsSummons1.AcceptChanges()
End If
 
Sometimes...means what? on any perticular sequence of operation...
Try to debug the situation

Sharing the best from my side...

--Prashant--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top