Results 1 to 6 of 6

Thread: How to update datagridview with database access

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2017
    Posts
    8

    How to update datagridview with database access

    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.
    Name:  frm1.jpg
Views: 2474
Size:  30.0 KB

    2 form to add data and when I close the data is not updated.
    Name:  frm2.jpg
Views: 2438
Size:  32.3 KB
    I had tried with
    Code:
    Private Sub ActualizarToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ActualizarToolStripMenuItem.Click
            'SonidoTableAdapter.Update(AdmDataSet.Sonido)
            DataGridView1.Refresh()
        End Sub
    -----update----------------
    My forms and access to the database is as follows
    In frm2
    Name:  2.png
Views: 2005
Size:  32.1 KB
    so I pulled and dragged -- Sonido -- to the form frm2.
    Here I gave him a few tweaks and it was like that:
    Name:  1.jpg
Views: 2023
Size:  27.6 KB
    Last edited by royer11; Oct 23rd, 2018 at 11:19 PM. Reason: More data

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width