By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,065 Members | 1,560 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,065 IT Pros & Developers. It's quick & easy.

How to refresh a form in vb.net

P: 1
Hi,

I'm using sql server database and Visual Studio 2010. I have a form with DataGridView. After making the changes in the data, it is saved in the database. The data gets saved in the database, but the modified data does not get displayed in the DataGridView. Only if I close the form and open it again, the changes are being displayed. I want to provide a button (refresh-button), which on clicking will refresh the DataGridView, so that the modified data will be displayed without closing the form.
Help needed?

Please Reply.

~Thanks~
Jul 9 '13 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
So, did you add a refresh button?
Did you implement code in the click event for the button that selects from your database and sets this as the DataGridView's data source?

-Frinny
Jul 10 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.