TableRow::CellControlCollection::AddAt Method (Int32, Control^)

 

Adds the specified Control object to the TableRow::CellControlCollection collection. The new control is added to the array at the specified index location.

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

public:
virtual void AddAt(
	int index,
	Control^ child
) override

Parameters

index
Type: System::Int32

The location in the array to add the child control.

child
Type: System.Web.UI::Control^

The Control to add to the TableRow::CellControlCollection.

Exception Condition
ArgumentException

The added Control must be of the type TableCell.

The added control can be only a TableCell object; otherwise, an ArgumentException is thrown.

.NET Framework
Available since 1.1
Return to top
Show: