asp.net.ph

TableCellCollection.RemoveAt Method

System.Web.UI.WebControls Namespace   TableCellCollection Class


Removes a row at the specified index in a Table.

[ VB ]
Public Sub RemoveAt ( _
   ByVal index As Integer
)

[ C# ]
public void RemoveAt (
   int index
);

[ C++ ]
public: void RemoveAt (
   int index
);

[ JScript ]
public function RemoveAt (
   index : int
);

Parameters

index
The index number of the TableCell to remove.

Remarks

Use the RemoveAt method to remove a TableRow object at the specified index location in the TableCellCollection.

Example

The following example demonstrates how to use the RemoveAt method to programmatically remove a TableRow at the specified index location in a Table control at run time.

// get the rows collection
TableRowCollection myRows = myTable.Rows;
// remove the row at the given index
myRows.RemoveAt ( 0 );
  C# VB

See Also

TableRowCollection Members   Rows.Add   Rows.AddAt   Rows.AddRange   Rows.Remove   Rows.Clear Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph