Export (0) Print
Expand All

DataGridColumnCollectionEditor Class

Provides a collection editing user interface for a column collection of a DataGrid Web server control.

For a list of all members of this type, see DataGridColumnCollectionEditor Members.

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

[Visual Basic]
Public Class DataGridColumnCollectionEditor
   Inherits UITypeEditor
[C#]
public class DataGridColumnCollectionEditor : UITypeEditor
[C++]
public __gc class DataGridColumnCollectionEditor : public
   UITypeEditor
[JScript]
public class DataGridColumnCollectionEditor extends UITypeEditor

Thread Safety

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

Example

[Visual Basic] The following code example uses the EditorAttribute to associate the DataGridColumnCollectionEditor class and the UITypeEditor class (the collection editor's base class) with a custom Columns property. The property is a reference to the DataGridColumnCollection class.

[Visual Basic] 
Private columns As DataGridColumnCollection

' Use the TableCellCollectionEditor to allow
' property editing on a design surface.                     
<EditorAttribute( _
 GetType(System.Web.UI.Design.WebControls.DataGridColumnCollectionEditor), _
 GetType(UITypeEditor))> _
Public ReadOnly Property TestColumns() As DataGridColumnCollection
   Get
       Return columns
   End Get

End Property        

[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Web.UI.Design.WebControls

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Design (in System.Design.dll)

See Also

DataGridColumnCollectionEditor Members | System.Web.UI.Design.WebControls Namespace | DataGrid

Show:
© 2014 Microsoft