System.Web.UI.WebControls.TableRowCollection.AddRange Method

Appends the System.Web.UI.WebControls.TableRow objects from the specified array to the end of the collection.

Syntax

public void AddRange (TableRow[] rows)

Parameters

rows
The array containing the System.Web.UI.WebControls.TableRow objects to add to the collection.

Remarks

Use the TableRowCollection.AddRange(TableRow[]) method to append the System.Web.UI.WebControls.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 System.Web.UI.WebControls.TableRow objects to represent the rows of the table. Next, use the TableRowCollection.AddRange(TableRow[]) method, passing the array as an argument, to add the System.Web.UI.WebControls.TableRow objects to the collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0