DataGridColumnCollection(DataGrid, ArrayList) Constructor

Definition

Initializes a new instance of the DataGridColumnCollection class.

C#
public DataGridColumnCollection(System.Web.UI.WebControls.DataGrid owner, System.Collections.ArrayList columns);

Parameters

owner
DataGrid

The DataGrid control that corresponds with this collection.

columns
ArrayList

A ArrayList that stores the collection of columns.

Examples

The following code example demonstrates how to create and initialize a new instance of the DataGridColumnCollection class.

C#
void Page_Init(Object sender, EventArgs e)
{
   ArrayList myList = new ArrayList();
   DataGridColumnCollection myColumnCollection = new DataGridColumnCollection(ItemsGrid, myList);
}

Remarks

Use this constructor to create and initialize a new instance of the DataGridColumnCollection class.

Applies to

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also