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[]
)
Not applicable.

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: