Datagridview 为什么是用户控件';第一次加载表单时,是否调用了3次BindingSource.CurrentChanged方法?

Datagridview 为什么是用户控件';第一次加载表单时,是否调用了3次BindingSource.CurrentChanged方法?,datagridview,bindingsource,Datagridview,Bindingsource,我有一个用户控件,其中包含一个绑定的datagridview和一个用于在绑定源中加载数据的集合 当我想第一次从另一个窗体加载控件时,BindingSource.CurrentChanged方法被调用了3次!但当我单击next按钮查看加载的datagridview控件上的下一个对象时,BindingSource.CurrentChanged只被调用一次 有人能解释一下为什么CurrentChanged方法第一次被调用了3次,但在控件已经加载时只调用了一次吗 CurrentChanged事件在当前属

我有一个用户控件,其中包含一个绑定的datagridview和一个用于在绑定源中加载数据的集合

当我想第一次从另一个窗体加载控件时,BindingSource.CurrentChanged方法被调用了3次!但当我单击next按钮查看加载的datagridview控件上的下一个对象时,BindingSource.CurrentChanged只被调用一次


有人能解释一下为什么CurrentChanged方法第一次被调用了3次,但在控件已经加载时只调用了一次吗

CurrentChanged事件在当前属性因以下任何原因发生更改时引发:

The current position of the List changes.

The DataSource or DataMember properties change.

The membership of the underlying List changes, which causes Position to refer to a different item. Examples include adding or deleting an item before the current item, deleting or moving the current item itself, or moving an item to the current position.

The underlying list is refreshed by a new sorting or filtering operation.
有关更多信息,请参阅第页