Table.RowControlCollection.AddAt Method
.NET Framework 3.0
This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Adds the specified Control object to the Table.RowControlCollection collection. The new control is added to the array at the specified index location.
Namespace: System.Web.UI.WebControlsAssembly: System.Web (in system.web.dll)
public void AddAt ( int index, Control child )
public override function AddAt ( index : int, child : Control )
Not applicable.
Parameters
- index
The location in the array at which to add the child control.
- child
The Control object to add to the Table.RowControlCollection.
| Exception type | Condition |
|---|---|
| The control does not allow child controls. | |
| The child value is a null reference (Nothing in Visual Basic). -or- The object is not a TableRow. |
Use the AddAt method to add a new control to the Table.RowControlCollection collection at a specified location. The control can be only an instance of a TableRow control.
To add a control to the Table.RowControlCollection at the end of the Table.RowControlCollection, use the Add method.
Community Additions
ADD
Show: