Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SqlDataSource::Filtering Event

 

Occurs before a filter operation.

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

public:
event SqlDataSourceFilteringEventHandler^ Filtering {
	void add(SqlDataSourceFilteringEventHandler^ value);
	void remove(SqlDataSourceFilteringEventHandler^ value);
}

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
Show:
© 2017 Microsoft