TableRowCollection::Add Method (TableRow^)

 

Appends the specified TableRow object to the end of the TableRowCollection.

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

public:
int Add(
	TableRow^ row
)

Parameters

row
Type: System.Web.UI.WebControls::TableRow^

The TableRow object to add to the TableRowCollection.

Return Value

Type: System::Int32

The index of the TableRow.

Use this method to add a TableRow object to the end of a TableRowCollection.

The following example demonstrates how use the Add method to add a TableRow object to a TableRowCollection. Note that in the example, the Rows property of the Table is an instance of the TableRowCollection class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: