Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft