BaseDataList.OnDataPropertyChanged 方法

定义

在某一基础数据源标识属性更改时调用,以将数据绑定控件重新绑定到其数据。Called when one of the base data source identification properties is changed, to rebind the data-bound control to its data.

protected:
 virtual void OnDataPropertyChanged();
protected virtual void OnDataPropertyChanged ();
abstract member OnDataPropertyChanged : unit -> unit
override this.OnDataPropertyChanged : unit -> unit
Protected Overridable Sub OnDataPropertyChanged ()

例外

曾尝试在控件的数据绑定阶段更改属性值。An attempt was made to change the property value during the data-binding phase of the control.

注解

OnDataPropertyChangedDataMemberDataSourceDataSourceID 属性更改页面事件后的值时,调用方法将数据绑定控件重新绑定到其数据 PreRenderThe OnDataPropertyChanged method is called to rebind the data-bound control to its data when the DataMember, DataSource, or DataSourceID property changes values after the page's PreRender event.

适用于

另请参阅