0

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!

Edited by __avd: Added [code] tags.

2
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by dejanc
0

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

Edited by __avd: Added [code] tags.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.