System.Web.UI.WebControls.Table.CreateControlCollection Method

Creates a new System.Web.UI.ControlCollection object to hold the System.Web.UI.WebControls.TableRow controls of the current System.Web.UI.WebControls.Table control.

Syntax

protected override System.Web.UI.ControlCollection CreateControlCollection ()

Returns

A System.Web.UI.ControlCollection object to contain the System.Web.UI.WebControls.TableRow controls of the current System.Web.UI.WebControls.Table control.

Remarks

This method is used primarily by control developers when deriving a custom class from a System.Web.UI.WebControls.Table control.

This method overrides the System.Web.UI.Control.CreateControlCollection implementation for the base System.Web.UI.Control class. For a System.Web.UI.WebControls.Table control, the Table.CreateControlCollection always returns a System.Web.UI.ControlCollection that can only contain System.Web.UI.WebControls.TableRow controls of the current System.Web.UI.WebControls.Table control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0