DataGridColumnCollection.CopyTo Method
.NET Framework 2.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 )
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.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show:
Note