System.Web.UI.Design.DataSourceDesigner Class

Provides design-time support in a design host for the System.Web.UI.DataSourceControl class.

See Also: DataSourceDesigner Members

Syntax

public class DataSourceDesigner : ControlDesigner, IDataSourceDesigner

Remarks

The System.Web.UI.Design.DataSourceDesigner class is the base class for data source designers, such as the System.Web.UI.Design.WebControls.SqlDataSourceDesigner, System.Web.UI.Design.WebControls.AccessDataSourceDesigner, and System.Web.UI.Design.WebControls.ObjectDataSourceDesigner classes. If you create a new data source control, you might also want to create a custom control designer for your control and derive it from the System.Web.UI.Design.DataSourceDesigner class.

The System.Web.UI.Design.DataSourceDesigner class has two event methods: the DataSourceDesigner.OnDataSourceChanged(EventArgs) and DataSourceDesigner.OnSchemaRefreshed(EventArgs) methods. Both of these events can be temporarily disabled with the DataSourceDesigner.SuppressDataSourceEvents method, which sets the DataSourceDesigner.SuppressingDataSourceEvents property. The event methods can be enabled again with the DataSourceDesigner.ResumeDataSourceEvents method.

There are two static methods that you can use to evaluate the equivalency of schemas or views without creating an instance of the class:

Requirements

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