SqlDataSource.Filtering Event


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Occurs before a filter operation.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public event SqlDataSourceFilteringEventHandler Filtering

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

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

For more information about handling events, see NIB: Consuming Events.

.NET Framework
Available since 2.0
Return to top