E' tutto qui.... e' solo una prova.. funziona tutto tranne il delete
Public Class Form1
Private bindingSource1 As New BindingSource()
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
' questa riga di codice carica i dati nella tabella 'Recensioni0DataSet1.Contatti'. È possibile spostarla o rimuoverla se necessario.
Me.ContattiTableAdapter.Fill(Me.Recensioni0DataSet1.Contatti)
' Me.DataGridView1.DataSource = Me.bindingSource1
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ContattiBindingSource.MoveNext()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
ContattiBindingSource.AddNew()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
ContattiBindingSource.EndEdit()
ContattiTableAdapter.Update(Recensioni0DataSet1.Contatti)
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
ContattiBindingSource.MovePrevious()
End Sub
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
' DataGridView1.DataSource = bindingSource1
' GetData("select * from Customers")
Dim contattiTableAdapter As New recensioni0DataSet1TableAdapters.ContattiTableAdapter
Dim a As String = DataGridView1.Item(0, DataGridView1.CurrentCell.RowIndex).Value.ToString
contattiTableAdapter.Delete(a, TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox4.Text, TextBox5.Text, TextBox6.Text, TextBox7.Text, TextBox8.Text, TextBox9.Text, TextBox10.Text, TextBox11.Text, TextBox12.Text, TextBox13.Text)
End Sub
End Class