DataBoundControl.CreatingModelDataSource 事件

定义

ModelDataSource 对象正被创建时发生。

public:
 event System::Web::UI::WebControls::CreatingModelDataSourceEventHandler ^ CreatingModelDataSource;
public event System.Web.UI.WebControls.CreatingModelDataSourceEventHandler CreatingModelDataSource;
member this.CreatingModelDataSource : System.Web.UI.WebControls.CreatingModelDataSourceEventHandler 
Public Custom Event CreatingModelDataSource As CreatingModelDataSourceEventHandler 

事件类型

CreatingModelDataSourceEventHandler

注解

此事件的目的是让你有机会在想要使用派生自类的ModelDataSourceView自定义类的情况下更改ModelDataSourceView实例。

适用于