DataGridColumnCollection.CopyTo Method
.NET Framework 3.0
Copies the items from the DataGridColumnCollection collection to the specified System.Array, starting at the specified index in the System.Array.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public final void CopyTo ( Array array, int index )
public final function CopyTo ( array : Array, index : int )
Not applicable.
Parameters
- array
A zero-based System.Array that receives the copied items from the DataGridColumnCollection.
- index
The first position in the specified System.Array to receive the copied contents.
The following code example demonstrates how to use the CopyTo method to copy the contents of the DataGridColumnCollection collection to an array of DataGridColumn objects.
Community Additions
ADD
Show:
Note: