System.Web.UI.WebControls.TableRow Class

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

See Also: TableRow Members

Syntax

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

Remarks

In this topic:

Introduction

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.

Note:

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

Example

<asp:TableRow
    AccessKey="string"
    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"
    BorderStyle="

Requirements

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