Export (0) Print
Expand All

DataGridComponentEditor Class

Provides a component editor for a DataGrid Web server control.

Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in system.design.dll)

public class DataGridComponentEditor : BaseDataListComponentEditor
public class DataGridComponentEditor extends BaseDataListComponentEditor
public class DataGridComponentEditor extends BaseDataListComponentEditor
Not applicable.

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft