IDataSource.DataSourceChanged IDataSource.DataSourceChanged IDataSource.DataSourceChanged IDataSource.DataSourceChanged Event

定義

當資料來源控制項變更而影響資料繫結控制項時發生。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.

適用於