DataGridColumnCollection Constructor (DataGrid^, ArrayList^)
.NET Framework (current version)
Initializes a new instance of the DataGridColumnCollection class.
Assembly: System.Web (in System.Web.dll)
Parameters
- owner
-
Type:
System.Web.UI.WebControls::DataGrid^
The DataGrid control that corresponds with this collection.
- columns
-
Type:
System.Collections::ArrayList^
A System.Collections::ArrayList that stores the collection of columns.
Use this constructor to create and initialize a new instance of the DataGridColumnCollection class.
The following code example demonstrates how to create and initialize a new instance of the DataGridColumnCollection class.
.NET Framework
Available since 1.1
Available since 1.1
Show: