Question : Visual Studios BindingSource problem

I'm having a problem with a very simple application that is merely supposed to scroll through a single table in a dataset.  For some reason, when I debug the application, no data is being populated to the controls.  

This is an assignment, but the book does not address this issue, as I am only supposed to set up the tableadapter and bindingsource and it is supposed to work.  Unless I missed something...

Here is the code.

I've also included the move methods for the button controls.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
Private Sub TblScoresBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblScoresBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.TblScoresBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.SportsDataSet)

    End Sub

    Private Sub mainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'SportsDataSet.tblScores' table. You can move, or remove it, as needed.
        Me.TblScoresTableAdapter.Fill(Me.SportsDataSet.tblScores)
        Me.TblScoresBindingSource.MoveFirst()


    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        Me.TblScoresBindingSource.MoveNext()

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.TblScoresBindingSource.MovePrevious()

    End Sub

Answer : Visual Studios BindingSource problem

So the first one :
Me.TblScoresTableAdapter.Update(Me.SportsDataSet.tblScores)
gives you an error? You can't use UpdateAll when you are using one specific adapter.
You need to use Update only
Random Solutions  
 
programming4us programming4us