TableRowCollection::Clear Method ()

 

Removes all TableRow controls from the TableRowCollection.

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

public:
virtual void Clear() sealed

Implements

IList::Clear()

Use this method to remove all TableRow objects from the TableRowCollection and set the Count property to 0.

The following example demonstrates how to use the Clear method to remove all TableRow objects from the TableRowCollection of the table and replace them with new TableRow objects.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: