Freigeben über


DataGridColumnCollectionEditor-Klasse

Stellt eine Benutzeroberfläche zum Bearbeiten der Spaltenauflistung eines DataGrid-Steuerelements bereit.

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

Syntax

'Declaration
Public Class DataGridColumnCollectionEditor
    Inherits UITypeEditor
'Usage
Dim instance As DataGridColumnCollectionEditor
public class DataGridColumnCollectionEditor : UITypeEditor
public ref class DataGridColumnCollectionEditor : public UITypeEditor
public class DataGridColumnCollectionEditor extends UITypeEditor
public class DataGridColumnCollectionEditor extends UITypeEditor

Beispiel

Im folgenden Codebeispiel werden der DataGridColumnCollectionEditor-Klasse und der UITypeEditor-Klasse (die Basisklasse des Auflistungs-Editors) mithilfe von EditorAttribute eine benutzerdefinierte Columns-Eigenschaft zugeordnet. Die Eigenschaft ist ein Verweis auf die DataGridColumnCollection-Klasse.

Private columns As DataGridColumnCollection

' Associate DataGridColumnCollectionEditor with the TestColumns.
<EditorAttribute( GetType( System.Web.UI.Design.WebControls. _
    DataGridColumnCollectionEditor), _
    GetType(UITypeEditor))> _
Public ReadOnly Property TestColumns() As DataGridColumnCollection
    Get
        Return columns
    End Get
End Property ' TestColumns
private DataGridColumnCollection columns = null;

// Associate the DataGridColumnCollectionEditor with the TestColumns. 
[EditorAttribute(typeof(System.Web.UI.Design.WebControls.
   DataGridColumnCollectionEditor),
   typeof(UITypeEditor))]
public DataGridColumnCollection TestColumns
{
    get { return columns; }
} // TestColumns

.NET Framework-Sicherheit

Vererbungshierarchie

System.Object
   System.Drawing.Design.UITypeEditor
    System.Web.UI.Design.WebControls.DataGridColumnCollectionEditor

Threadsicherheit

Alle öffentlichen statischen (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Plattformen

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

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

DataGridColumnCollectionEditor-Member
System.Web.UI.Design.WebControls-Namespace
DataGrid

Weitere Ressourcen

Übersicht über Typ-Editoren für Benutzeroberflächen