SqlDataSource.Filtering 事件

定义

执行筛选操作前发生。Occurs before a filter operation.

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

注解

处理事件, 在SqlDataSource控件执行筛选器操作之前对筛选器参数值执行验证操作。 FilteringHandle the Filtering event to perform validation operations on filter parameter values before the SqlDataSource control performs a filter operation. 可以通过Select SqlDataSourceFilteringEventArgs将对象trueCancel属性设置为来取消方法。You can cancel the Select method by setting the Cancel property of the SqlDataSourceFilteringEventArgs object to true. 仅当FilterExpression设置了属性时才引发事件。The event is raised only if the FilterExpression property is set.

事件委托SqlDataSourceView SqlDataSourceView.Filtering给与SqlDataSource控件相关联的对象的事件。 SqlDataSource.FilteringThe SqlDataSource.Filtering event delegates to the SqlDataSourceView.Filtering event of the SqlDataSourceView object that is associated with the SqlDataSource control.

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

适用于

另请参阅