When is it worth using a BindingSource?

后端 未结 3 1276
萌比男神i
萌比男神i 2021-02-02 08:20

I think I understand well enough what the BindingSource class does - i.e. provide a layer of indirection between a data source and a UI control. It implements the IBindingList i

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 08:59

    I also would like to add, using BindingSource, you can bind to a business object, which can implement INotifyPropertyChanged event, so if data is changed (whether by your code or someone else's code), your UI can automatically reflect the updates.

提交回复
热议问题