I have two windows forms. The first form shows list of records from sql. When you click some cell of a record in DataGridView it shows the second form. In the second form you can edit and update the record. I want DataGridView to be
updated automatically when user close second form. What should I do?
I have two windows forms. The first form shows list of records from sql.
Share
Are you using data bindings, or do you manually fill the grid ? With data bindings its very easy… if the data is contained in a
DataTableand you change it somewhere, the change will be reflected automatically in theDataGridView. It also works with objects that implementINotifyPropertyChanged, and lists that implement IBindingList.If you’re not using bindings, you can :