I recieve some information about using binding source but I really don't understand explicitly why using binding source related to datagridview.
My questions are:
Advantage and disadvantage of using bindingsource instead of removing the third person that is bet开发者_Python百科ween the datasource and data gridview?
What context are you supposed to use binding source?
Binding source can provide some additional logic that you want to protect your model. The most natural example is transaction logic or the ability to cancel changes.
When you're binding a control to a datasource directly all changes take place immediately. With a binding source between these two you have the ability to cancel or save edit, to buffer changes etc.
精彩评论