I am working in c# project, i need to update datagridview control after inserting a new record. When i am doing this, the gridview keeps its old values also, what should i do to show only updated records
+2
A:
You need to show what the data source that you are binding to is. If it doesn't have any update functionality (implementing INotifyPropertyChanged, for example), then the grid won't be able to tell when a value changed and update itself.
casperOne
2009-03-25 16:04:41
+1
A:
You haven't posted a snippet of your code for us to analyze so my best guess would be that you are neglecting to re-bind the Data/Gridview after row insert.
Cerebrus
2009-03-25 16:12:38
A:
You need to call ResetBindings when the bound data source changes unless the data source implements the appropriate notifications to give an update notification to the grid.
Jeff Yates
2009-03-25 16:25:50