Hello,
I am using VB.net.
I have a DataGridView that is loaded with a transaction history from a database by a call to a subroutine called LoadHistory(). I have three buttons that open new forms, one allows a transaction to be edited, one allows a transaction to be added and one that allows a transaction to be deleted. The transaction changes are being correctly loaded into the database. When I close the forms I would like the DataGridView to be reloaded with the changes. I tried to put a call to LoadHistory() after my database change. I tired putting the call on the Leave event and Form Closed event. I can't seem to get my DataGridView reloaded without stepping to the next record and then back again.
Any suggestions?
I am using VB.net.
I have a DataGridView that is loaded with a transaction history from a database by a call to a subroutine called LoadHistory(). I have three buttons that open new forms, one allows a transaction to be edited, one allows a transaction to be added and one that allows a transaction to be deleted. The transaction changes are being correctly loaded into the database. When I close the forms I would like the DataGridView to be reloaded with the changes. I tried to put a call to LoadHistory() after my database change. I tired putting the call on the Leave event and Form Closed event. I can't seem to get my DataGridView reloaded without stepping to the next record and then back again.
Any suggestions?
Comment