DataGridColumnCollection.DataGridColumnCollection Constructor
.NET Framework 3.0
Initializes a new instance of the DataGridColumnCollection class.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public DataGridColumnCollection ( DataGrid owner, ArrayList columns )
public function DataGridColumnCollection ( owner : DataGrid, columns : ArrayList )
Not applicable.
Parameters
- owner
The DataGrid control that corresponds with this collection.
- columns
A System.Collections.ArrayList that stores the collection of columns.
The following code example demonstrates how to create and initialize a new instance of the DataGridColumnCollection class.
void Page_Init(Object sender, EventArgs e)
{
ArrayList myList = new ArrayList();
DataGridColumnCollection myColumnCollection =
new DataGridColumnCollection(itemsGrid, myList);
} //Page_Init
Community Additions
ADD
Show: