IDataSource.DataSourceChanged 事件

定义

数据源控件以某种影响数据绑定控件的方式发生变化时发生。Occurs when a data source control has changed in some way that affects data-bound controls.

public:
 event EventHandler ^ DataSourceChanged;
event EventHandler DataSourceChanged;
member this.DataSourceChanged : EventHandler 
Event DataSourceChanged As EventHandler 

注解

当数据绑定控件的属性或基础数据在某种程度上发生更改时, 会引发该事件,此方法会影响数据绑定控件及其数据之间的数据绑定。DataSourceChangedThe DataSourceChanged event is raised when the properties of a data-bound control or the underlying data has changed in some way that affects the data bindings between a data-bound control and its data. 例如, 如果在基于文件的数据源控件上更改了文件名属性 ( DataFile如属性), 则会引发事件。For example, the event is raised if a file name property, such as the DataFile property, is changed on a file-based data source control.

有关如何处理事件的详细信息, 请参阅处理和引发事件For more information about how to handle events, see Handling and Raising Events.

适用于