Update DataGridView when Wizard finishes

May 14 2009 3:03 PM
I am trying to update a DataGridView control with current data after a wizard finishes updating the database and I am not sure how to approach the problem. If I try to update it when the Finish button is clicked, it says that the DataGridView is not available in the current context. After the wizard finishes and the wizard closes, the form with the DataGridView is visible and active, but the record that was added to the database does not show up on the DataGridView. Where should I update the DataGridView?