Hi,
I have a form with gridview data with database data. With query I run INSERT INTO from one table into another, with button.
I would like when I run procedure, also reset/update/refresh gridview with new import data??!!

For info, I have try with some methods, such as me. gridview.refresh() or update(), but nothing. Maybe I have also using this methods wrong.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim TEST = New WindowsApplication1.IdisDataSetTableAdapters.QueriesTableAdapter
        TEST.InsertQuery()
        
    End Sub

Thank you in advance for help to anyone!

Found solution. I have call again Fill... :-)

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim TEST = New WindowsApplication1.IdisDataSetTableAdapters.Queri esTableAdapter
TEST.InsertQuery()
Me.IdisTableAdapter.Fill(Me.IdisDataSet.Idis)
End Sub

@dejanc

Please use BB code tags while posting source program.

[code]

.... [/code]

Take a look at forum rules.

Sure, no problem. I will keep remember.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.