System.Web.UI.WebControls.SqlDataSource.Filtering Event

Occurs before a filter operation.

Syntax

public event SqlDataSourceFilteringEventHandler Filtering

Remarks

Handle the SqlDataSource.Filtering event to perform validation operations on filter parameter values before the System.Web.UI.WebControls.SqlDataSource control performs a filter operation. You can cancel the SqlDataSource.Select(System.Web.UI.DataSourceSelectArguments) method by setting the System.ComponentModel.CancelEventArgs.Cancel property of the System.Web.UI.WebControls.SqlDataSourceFilteringEventArgs object to true. The event is raised only if the SqlDataSource.FilterExpression property is set.

The SqlDataSource.Filtering event delegates to the SqlDataSourceView.Filtering event of the System.Web.UI.WebControls.SqlDataSourceView object that is associated with the System.Web.UI.WebControls.SqlDataSource control.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0