Table.RowControlCollection.Add Method (Control)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Adds the specified Control object to the Table.RowControlCollection collection.

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

public override void Add(
	Control child
)

Parameters

child
Type: System.Web.UI.Control

The Control to add to the Table.RowControlCollection.

Exception Condition
ArgumentException

The object specified by child is not a TableRow.

Use the Add method to add a new control to the Table.RowControlCollection collection. The specified control is added at the end of the array. The control can be only an instance of a TableRow control.

To add a control to the Table.RowControlCollection collection at a specific index location, use the AddAt method.

.NET Framework
Available since 1.1
Return to top
Show: