ToggleFilter Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Toggles the state of the current filter that has been applied to the data access page. If the filter is active, calling this method deactivates the filter. Calling this method a second time reapplies the filter.

expression.ToggleFilter

expression   Required. An expression that returns a DataPage object.

Example

This example toggles the filter on the first data access page in the data source control named MSODSC.

  MSODSC.DataPages(0).ToggleFilter