DataListComponentEditor Class
Provides a component editor for a Web Forms DataList control.
For a list of all members of this type, see DataListComponentEditor Members.
System.Object
System.ComponentModel.ComponentEditor
System.Windows.Forms.Design.WindowsFormsComponentEditor
System.Web.UI.Design.WebControls.BaseDataListComponentEditor
System.Web.UI.Design.WebControls.DataListComponentEditor
[Visual Basic] Public Class DataListComponentEditor Inherits BaseDataListComponentEditor [C#] public class DataListComponentEditor : BaseDataListComponentEditor [C++] public __gc class DataListComponentEditor : public BaseDataListComponentEditor [JScript] public class DataListComponentEditor extends BaseDataListComponentEditor
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
A component editor is a class that provides a custom user interface for editing the properties of a control as a whole.
Example
[Visual Basic] The following code example uses the EditorAttribute class to associate the DataListComponentEditor class with a class, named SimpleDataList, that inherits from the DataList class.
[Visual Basic]
' Override the Initialize method to ensure that
' only an instance of the SimpleDataList class is
' used by this designer class.
Public Overrides Sub Initialize(component As IComponent)
Debug.Assert( _
TypeOf component Is SimpleDataList, _
"SimpleDataListDesigner::Initialize - Invalid SimpleDataList Control")
simpleList = CType(component, SimpleDataList)
MyBase.Initialize(component)
End Sub
[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Namespace: System.Web.UI.Design.WebControls
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Design (in System.Design.dll)
See Also
DataListComponentEditor Members | System.Web.UI.Design.WebControls Namespace | DataList | DataListDesigner