开发者

Purpose of using binding source?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜