refresh form with datagridview
Posted on 2012-08-27
I have a windform with DataGridView display a list of data with a DataGridViewButtonColumn. When I clicked the button, a popup window will display some info and I could make changes. And after I clicked a button in popup. Some data updated in DB. And popup closed. But the content of my DataGridView in first firm should have changed. But not updated I could not see the changes I made. I know I should update the form or the datasource of DataGridView so that I could see the changes after the popup closed. I tried this.update(); this.refresh(); invalidate.....Just not working correctly.
But It worked if I reload the form. The problem is I don't want to reload the whole form?
How to handle it? Appreciated!!