How to refresh form gridview after insert into?

dejanc

Registered User.
Local time
Yesterday, 22:38
Joined
Aug 4, 2009
Messages
45
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!
 
I have found solution. So, if someone need it, can take it...:-)

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
 

Users who are viewing this thread

Back
Top Bottom