Hello everyone, how can I update the data in datagridview with a button, at the moment I have created 2 forms:
1 form is where I have the datagridview and to link to the other I have a button.
2 form to add data and when I close the data is not updated.
I had tried with
-----update----------------Code:Private Sub ActualizarToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ActualizarToolStripMenuItem.Click 'SonidoTableAdapter.Update(AdmDataSet.Sonido) DataGridView1.Refresh() End Sub
My forms and access to the database is as follows
In frm2
so I pulled and dragged -- Sonido -- to the form frm2.
Here I gave him a few tweaks and it was like that:
![]()




Reply With Quote
