IHierarchicalDataSourceDesigner.SuppressDataSourceEvents Method ()


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

Turns off events in the data source control.

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

void SuppressDataSourceEvents()

You can restore events with the ResumeDataSourceEvents method.

Notes to Implementers:

Typically, you would call the SuppressDataSourceEvents method when opening a dialog box, such as with the Configure method, or during a call to the RefreshSchema method, if building the schema requires multiple processes, any of which might create an exception. After processing is finished, call the ResumeDataSourceEvents method.

.NET Framework
Available since 2.0
Return to top