asp.net.ph

HtmlTableRowCollection.RemoveAt Method

System.Web.UI.HtmlControls Namespace   HtmlTableRowCollection Class


Removes the table row at the specified index from the Rows collection.

[ 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 of the table row to be removed.

Remarks

Use this method to remove the HtmlTableRow at the specified index from an HtmlTableRowCollection.

Remember that the index number is zero-based; therefore, the first item in the collection has an index value of 0.

NOTE: An ArgumentOutOfRangeException is raised if you specify an index that is outside the range of index values in the collection.

Example

The following example demonstrates how to use the RemoveAt method to remove the last row from the HtmlTableRowCollection.

myTable.Rows.RemoveAt ( myTable.Rows.Count - 1 );

 Show me 

See Also

HtmlTableRowCollection Members   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