System.Web.UI.WebControls.GridViewRowCollection.CopyTo Method

Copies all the items from this System.Web.UI.WebControls.GridViewRowCollection to the specified Array object, starting at the specified index in the Array object.

Syntax

public void CopyTo (GridViewRow[] array, int index)

Parameters

array
A zero-based Array object that receives the copied items from the System.Web.UI.WebControls.GridViewRowCollection object.
index
The first index in the specified Array object to receive the copied contents.

Remarks

Use this method to copy the items in the System.Web.UI.WebControls.GridViewRowCollection object into the specified Array object, starting at the specified index. The Array object can then be used to access the items in the collection.

Note:

You must use a zero-based Array object for the array parameter.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0