windows forms newbie

acorn

Active member
Joined
Mar 8, 2008
Messages
32
Programming Experience
5-10
Hi there. I've created 2 forms, both with datagrids that list data from the same table. one form is for edits, the other form is for exporting data to another application. My problem is that when i make changes in one form and save the data... it doesn't show up on the export form. I've built a "refresh" button that attempts to refill my dataset but that doesn't seem to work either.
Each form is using a separate table adapter / dataset, but they both connect to the same stuff.
here's the code for the "refresh" button on the export form

Private Sub btnRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRefresh.Click
Me.TerritoryTableAdapter.FillBySortedName(TerritoryDS.Territory)
End Sub

And the code that fills the dataset (not sure what code to show...) on the edit form.

Private Sub editterritory_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TerritoryTableAdapter.FillBySortedName(TerritoryDS.Territory)
Me.HHTableAdapter.Fill(TerritoryDS.HH)
End Sub

Please and thanks!
 
Back
Top