This documentation is archived and is not being maintained.
DataGridComponentEditor Class
Visual Studio 2010
Provides a component editor for a DataGrid Web server control.
System::Object
System.ComponentModel::ComponentEditor
System.Windows.Forms.Design::WindowsFormsComponentEditor
System.Web.UI.Design.WebControls::BaseDataListComponentEditor
System.Web.UI.Design.WebControls::DataGridComponentEditor
System.ComponentModel::ComponentEditor
System.Windows.Forms.Design::WindowsFormsComponentEditor
System.Web.UI.Design.WebControls::BaseDataListComponentEditor
System.Web.UI.Design.WebControls::DataGridComponentEditor
Assembly: System.Design (in System.Design.dll)
The DataGridComponentEditor type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DataGridComponentEditor() | Initializes a new instance of the DataGridComponentEditor class and sets its initial page to 0. |
![]() | DataGridComponentEditor(Int32) | Initializes a new instance of the DataGridComponentEditor class and sets its initial page to the specified index. |
| Name | Description | |
|---|---|---|
![]() | EditComponent(Object) | Edits the component and returns a value indicating whether the component was modified. (Inherited from ComponentEditor.) |
![]() | EditComponent(ITypeDescriptorContext, Object) | Creates an editor window that allows the user to edit the specified component, using the specified context information. (Inherited from WindowsFormsComponentEditor.) |
![]() | EditComponent(Object, IWin32Window) | Creates an editor window that allows the user to edit the specified component, using the specified window that owns the component. (Inherited from WindowsFormsComponentEditor.) |
![]() | EditComponent(ITypeDescriptorContext, Object, IWin32Window) | Edits the specified component by using the specified context descriptor and parent window. (Inherited from BaseDataListComponentEditor.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetComponentEditorPages | Gets an array of Type objects corresponding to the pages that can be edited using this editor. (Overrides WindowsFormsComponentEditor::GetComponentEditorPages().) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetInitialComponentEditorPageIndex | Gets the index of the initial page to display in the component editor. (Inherited from BaseDataListComponentEditor.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
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
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

