DataGridComponentEditor Class
Collapse the table of content
Expand the table of content

DataGridComponentEditor Class

Provides a component editor for a DataGrid Web server control.

Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in

public class DataGridComponentEditor : BaseDataListComponentEditor
public class DataGridComponentEditor extends BaseDataListComponentEditor
public class DataGridComponentEditor extends BaseDataListComponentEditor

A component editor provides a user interface (UI) for editing the properties of a DataGrid control.

The following code example uses the EditorAttribute attribute to associate this editor with a class that extends the DataGrid class.

Imports System
Imports System.ComponentModel
Imports System.Web.UI.WebControls
Imports System.Web.UI.Design.WebControls
Imports System.Security.Permissions

Namespace Examples.AspNet

    ' Associate the SimpleDataList class with its designer using the
    ' DesignerAttribute class.

    ' Associate the SimpleDataList class with the DataListComponentEditor
    ' object using the EditorAttribute class.

    <DesignerAttribute( _
        GetType(SimpleDataListDesigner)), _
    EditorAttribute(GetType(DataListComponentEditor), _
        GetType(ComponentEditor)) _
     > _
    Public Class SimpleDataList
        Inherits DataList

        ' To customize the DataList class, insert code here.

    End Class
End Namespace

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
© 2016 Microsoft