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 

事件類型

EventHandler

備註

DataSourceChanged當資料繫結控制項或基礎資料的屬性變更時,會影響資料繫結控制項與其資料之間的資料系結,就會引發事件。The 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.

適用於