ASP.NET TableRow control

Definition and Usage

The TableRow control is used together with the TableCell control and the Table control to create rows in the table.

Tip:The rows of the table are stored in Table controlin the Rows collection.

Property

Property Description .NET
Cells A collection of TableCell objects, which represent the cells of the rows in a Table control.  
HorizontalAlign The horizontal alignment of the content within a table row. 1.0
TableSection The position of the TableRow object in the Table control. 2.0
VerticalAlign The vertical alignment of the line content. 1.0

Web Control Standard Properties

AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth 
CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled 
SkinID, Style, TabIndex, ToolTip, Width

For a full description, please visit Web Control Standard Properties.

Control Standard Properties

AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls 
EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site 
TemplateControl, TemplateSourceDirectory, UniqueID, Visible

For a full description, please visitControl Standard Properties.

Example

Table
In this example, we declare two Table controls in the .aspx file.
Table 2
In this example, we declare a Table control, three TableRow controls, and two TableCell controls in the .aspx file.