This documentation is archived and is not being maintained.

DataListComponentEditor Class

Provides a component editor for a Web Forms DataList control.

For a list of all members of this type, see DataListComponentEditor Members.


[Visual Basic]
Public Class DataListComponentEditor
   Inherits BaseDataListComponentEditor
public class DataListComponentEditor : BaseDataListComponentEditor
public __gc class DataListComponentEditor : public
public class DataListComponentEditor extends

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.


A component editor is a class that provides a custom user interface for editing the properties of a control as a whole.


[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)

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 Language Filter in the upper-left corner of the page.


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