How to refresh a bindingsource

前端 未结 2 433
别跟我提以往
别跟我提以往 2021-01-21 14:48

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 t

相关标签:
2条回答
  • 2021-01-21 15:18

    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...

    0 讨论(0)
  • 2021-01-21 15:24

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

    0 讨论(0)
提交回复
热议问题