Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

VS 2010 Database connectivity : how to reload?

$
0
0
Hi,

I'm having a problem with an access database that I've connected to a datagridview.
When I made the connection to the database for the first time, all records from the table in my database were shown in the datagridview, just like I expected.

But when I add new records in the same table, save the database and restart my VB program, the newly added records are not shown in the datagridview.

What do I have to do to force VB to "reload" the database table records into the gridview?

Code:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.TabelWCMBTableAdapter.Fill(Me.EMDataSet.TabelWCMB)
End Sub


Viewing all articles
Browse latest Browse all 42215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>