2
votes

This is really driving me nuts, I have a datagridview bound to a bindingsource, on the click of a button I add new objects to my database using my datacontext, how can I make the binding source to show the new objects in my datagrid? I already tried setting the datasource of the binding source again but it wont work, eventhough the new datasource does return the new objects in the list.

2

2 Answers

1
votes

There are two ways, either you have to bind the datasource again or you should implement the inotifypropertychanged interface

1
votes

I already tried setting the datasource of the binding source again but it wont work

Set it to null, then set it to the actual data source again. It should do the trick...