System.Web.UI.WebControls.TableRow Class

Represents a row in a System.Web.UI.WebControls.Table control.

See Also: TableRow Members


[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.PreviewControlDesigner, System.Design, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")]
[System.Web.UI.ParseChildren(true, "Cells")]
public class TableRow : WebControl


In this topic:


The System.Web.UI.WebControls.TableRow class represents a row in a System.Web.UI.WebControls.Table control.

This class allows you to control how the contents of the row are displayed. The alignment of the contents in the row are specified by setting the TableRow.HorizontalAlign and TableRow.VerticalAlign properties.

You can programmatically manage the cells in the row by using the TableRow.Cells collection. The TableRow.Cells collection is a collection of System.Web.UI.WebControls.TableCell objects that represent the cells in the row.


The System.Web.UI.WebControls.TableCell control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see Validation ASP.NET Controls.

Declarative Syntax


    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"


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