ASP.NET TableRow control

Definition and usage

TableRow control is used together with TableCell control and 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 the Table control.  
HorizontalAlign Tabular row content horizontal alignment method. 1.0
TableSection Table 控件中 TableRow 对象的位置。 2.0
VerticalAlign 行内容的垂直对齐方式。 1.0

Web 控件标准属性

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

如需完整描述,请访问 Web 控件标准属性

控件标准属性

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

如需完整描述,请访问控件标准属性

实例

Table
在本例中,我们在 .aspx 文件中声明了两个 Table 控件。
Table 2
在本例中,我们在 .aspx 文件中声明了一个 Table 控件,三个 TableRow 控件,以及两个 TableCell 控件。