Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27472

Refresh datagrid view?

$
0
0
I have a datagrid that is bound to a table in my database (SQL Compact Edition). I can insert, update, delete data to/in/from the database, and the datagrid DOES update EVENTUALLY, however; it seems that it only updates when the database is refreshed manually or the application is closed and opened after some time.

For example, when I go to check the datagrid my changes are not there, and when I close it and open it right back up, still not there. But if I open the server explorer and select "show table data" it opens the db and my changes are of course there all along, and now that the connection has been opened again, if I go into my datagrid it will be updated.

I've searched online and a lot of people have had this issue, which they call tricky. If I can't refresh this in real time, is there an alternative control that I should be using?

Viewing all articles
Browse latest Browse all 27472

Trending Articles



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