TableRowCollection.AddRange Method

Appends the TableRow objects from the specified array to the end of the collection.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
void AddRange (
	array<TableRow^>^ rows
)
public void AddRange (
	TableRow[] rows
)
public function AddRange (
	rows : TableRow[]
)

Parameters

rows

The array containing the TableRow objects to add to the collection.

Exception typeCondition

ArgumentNullException

The value of the rows parameter is a null reference (Nothing in Visual Basic).

Use the AddRange method to append the TableRow objects from the specified array to the collection. This method is commonly used when you are constructing a table. To construct a table, first create an array of TableRow objects to represent the rows of the table. Next, use the AddRange method, passing the array as an argument, to add the TableRow objects to the collection.

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.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show: