how can I refresh my datagridview without using a refresh button?
Posted on 2010-08-26
I have two forms one of them has a datagridview and the other is used to update the record the user clicks on the grid. When the user closes the form use to update the record, the form closes and then the user needs to click on refresh before the updated record shows in the datagridview.
What event shoud I use to automate the refreshing of my data in a datagridview?. Right now, I have the code in a refresh button in the form containing the datagridvie which works fine, but I would like the update of the datagridview to occur automatically when the user closes the form used to update the record. The code is fine since it is updating the datagridview but WHERE DO I PUT MY CODE SO I Can see the data in my datagridview change without having to click any buttons ? Thank you,