Share via


DataGridComponentEditor 類別

定義

提供 DataGrid Web 伺服器控制項的元件編輯器。

public ref class DataGridComponentEditor : System::Web::UI::Design::WebControls::BaseDataListComponentEditor
public class DataGridComponentEditor : System.Web.UI.Design.WebControls.BaseDataListComponentEditor
type DataGridComponentEditor = class
    inherit BaseDataListComponentEditor
Public Class DataGridComponentEditor
Inherits BaseDataListComponentEditor
繼承

範例

下列程式碼範例會使用 屬性, EditorAttribute 將這個編輯器與擴充 類別的 DataGrid 類別產生關聯。

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

備註

元件編輯器會提供使用者介面 (UI) ,以編輯控制項的屬性 DataGrid

建構函式

DataGridComponentEditor()

初始化 DataGridComponentEditor 類別的新執行個體,並將其初始頁面設為 0。

DataGridComponentEditor(Int32)

初始化 DataGridComponentEditor 類別的新執行個體,並將其初始頁面設為指定的索引。

方法

EditComponent(ITypeDescriptorContext, Object)

使用指定的內容資訊,建立能夠讓使用者編輯指定元件的編輯器視窗。

(繼承來源 WindowsFormsComponentEditor)
EditComponent(ITypeDescriptorContext, Object, IWin32Window)

使用指定的內容描述項和父視窗,編輯指定的元件。

(繼承來源 BaseDataListComponentEditor)
EditComponent(Object)

編輯元件並傳回指示是否已修改元件的值。

(繼承來源 ComponentEditor)
EditComponent(Object, IWin32Window)

使用擁有元件的指定視窗,建立能夠讓使用者編輯指定元件的編輯器視窗。

(繼承來源 WindowsFormsComponentEditor)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetComponentEditorPages()

取得 Type 物件的陣列,這些物件與可使用此編輯器編輯的頁面相對應。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetInitialComponentEditorPageIndex()

取得初始頁面的索引,以便顯示在元件編輯中。

(繼承來源 BaseDataListComponentEditor)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱