Click to return to the Data Access     
UseHeader Property     Objects    
Web Workshop  |  Data Access & Databases

Reset Method


Causes the control to filter or sort its data based on new settings.

Syntax

dataobj.Reset()

Example

When Reset is called, all the data is filtered and sorted according to the settings of the filter and sort properties. A typical use of the Reset method would be to specify a new Sort or Filter in script in response to a user action.

Data will only be fetched again if either DataURL has been changed or if the data has changed since the last Reset. Note that setting DataURL to itself is viewed as a change, so you can force a refetch of the data from script with the following:

dataobj.DataURL = Dataobj.DataURL;
dataobj.Reset();

After the Reset method is invoked, the browser will redisplay the data if necessary.

See Also

Filter, Sort


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.