Provides a base class for components that provide design-time support in a designer host for Web server controls that are derived from the System.Web.UI.WebControls.BaseDataList class.
See Also: BaseDataListDesigner Members
In a designer host, when the user switches from Source to Design view, the markup source code that describes a control derived from the System.Web.UI.WebControls.BaseDataList abstract class is parsed and a design-time version of the control is created on the design surface. When the user switches back to Source view, the design-time control is persisted to markup source code and edited into the markup for the Web page. The System.Web.UI.Design.WebControls.BaseDataListDesigner abstract class serves as a base class for components that provide design-time support for controls that are derived from the System.Web.UI.WebControls.BaseDataList in a designer host.
The System.Web.UI.Design.WebControls.BaseDataListDesigner class properties provide the following functionality:
The BaseDataListDesigner.ActionLists property returns a System.ComponentModel.Design.DesignerActionListCollection object, which typically contains an object that is derived from the System.ComponentModel.Design.DesignerActionList class for each level in the inheritance tree of the designer.
The BaseDataListDesigner.DataKeyField, BaseDataListDesigner.DataMember, BaseDataListDesigner.DataSource, and BaseDataListDesigner.DataSourceID properties provide access to the corresponding properties of the associated control.
The BaseDataListDesigner.DataSourceDesigner property provides access to the designer of the data source of the associated control. The BaseDataListDesigner.DesignerView property gets the default view of the data source.
The System.Web.UI.Design.WebControls.BaseDataListDesigner class methods provide the following functionality:
The BaseDataListDesigner.Initialize(System.ComponentModel.IComponent) method prepares the designer to view, edit, and design the associated control. The BaseDataListDesigner.InvokePropertyBuilder(int) method invokes a component editor for the control. The BaseDataListDesigner.PreFilterProperties(IDictionary) method is used to add, remove, or shadow design-time properties of the associated control.
The erload:System.Web.UI.Design.WebControls.BaseDataListDesigner.GetDesignTimeDataSource method generates an object that can be used as a data source at design time. The BaseDataListDesigner.GetSelectedDataSource method gets the data source from the container of the associated control. The BaseDataListDesigner.GetResolvedSelectedDataSource method gets the data source from the control container, resolved to a specific data member. The BaseDataListDesigner.GetTemplateContainerDataSource(string) method gets the data source of the template container.
The BaseDataListDesigner.OnComponentChanged(object, System.ComponentModel.Design.ComponentChangedEventArgs) method is called when there is a change to the associated control. The BaseDataListDesigner.OnDataSourceChanged method is called when the associated control data source has changed. The BaseDataListDesigner.OnSchemaRefreshed method is called when the schema of the associated control data source changes. The BaseDataListDesigner.OnAutoFormatApplied(System.Web.UI.Design.DesignerAutoFormat) method is called when an automatic formatting scheme has been applied.
The BaseDataListDesigner.OnStylesChanged and BaseDataListDesigner.OnTemplateEditingVerbsChanged methods can be overridden to implement functionality that should occur when an associated control style has changed or when the designer template-editing verbs have changed, respectively. The BaseDataListDesigner.OnPropertyBuilder(object, EventArgs) method handles the property-builder event.