I update the rows selected in the datagridview after they are transferred to textboxes. But immediately after updating it seems the updated information is not the old information. What should I do to see the newly updated information?
Loading
I update the rows selected in the datagridview after they are transferred to textboxes. But immediately after updating it seems the updated information is not the old information. What should I do to see the newly updated information?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mehmet FatihPosted Feb 20, 2024, 4:50 AM
No, Sam. I am not using Entity Framework. I am using ADO.Net. Thanks for your giving information.
Sam HobbsPosted Feb 19, 2024, 9:03 PM
You say the updated information is not the old information. Therefore is it the new information? Or do you mean that the DataGridView still has the old information?
Are you using Entity Framework? I asume not.
Is the DataGridView bound to a collection? Something like
List? Probably you need to change it toObservableCollectionand thesomedataclass needs to derive fromINotifyPropertyChangedand implementNotifyPropertyChanged. There are many articles about that.