ASP.NET Syntax ASP.NET Syntax for Web Controls
Allows you to declare a table row and manipulate it programmatically.
Declarative Syntax
<asp:TableRow
AccessKey = "string"
BackColor = "color name | #dddddd"
BorderColor = "color name | #dddddd"
BorderStyle = "NotSet | None | Dotted | Dashed | Solid | Double | Groove |
Ridge | Inset | Outset"
BorderWidth = size
CssClass = "string"
Enabled = "True | False"
EnableTheming = "True | False"
EnableViewState = "True | False"
Font-Bold = "True | False"
Font-Italic = "True | False"
Font-Names = "string"
Font-Overline = "True | False"
Font-Size = "string | Smaller | Larger | XX-Small | X-Small | Small |
Medium | Large | X-Large | XX-Large"
Font-Strikeout = "True | False"
Font-Underline = "True | False"
ForeColor = "color name | #dddddd"
Height = size
HorizontalAlign = "NotSet | Left | Center | Right | Justify"
ID = "string"
OnDataBinding = "DataBinding event handler"
OnDisposed = "Disposed event handler"
OnInit = "Init event handler"
OnLoad = "Load event handler"
OnPreRender = "PreRender event handler"
OnUnload = "Unload event handler"
runat = "server"
SkinID = "string"
Style = "string"
TabIndex = integer
TableSection = "TableHeader | TableBody | TableFooter"
ToolTip = "string"
VerticalAlign = "NotSet | Top | Middle | Bottom"
Visible = "True | False"
Width = size
>
<asp:TableCell
AccessKey = "string"
AssociatedHeaderCellID = "string"
BackColor = "color name | #dddddd"
BorderColor = "color name | #dddddd"
BorderStyle = "NotSet | None | Dotted | Dashed | Solid | Double |
Groove | Ridge | Inset | Outset"
BorderWidth = size
ColumnSpan = integer
CssClass = "string"
Enabled = "True | False"
EnableTheming = "True | False"
EnableViewState = "True | False"
Font-Bold = "True | False"
Font-Italic = "True | False"
Font-Names = "string"
Font-Overline = "True | False"
Font-Size = "string | Smaller | Larger | XX-Small |
X-Small | Small | Medium | Large | X-Large | XX-Large"
Font-Strikeout = "True | False"
Font-Underline = "True | False"
ForeColor = "color name | #dddddd"
Height = size
HorizontalAlign = "NotSet | Left | Center | Right | Justify"
ID = "string"
OnDataBinding = "DataBinding event handler"
OnDisposed = "Disposed event handler"
OnInit = "Init event handler"
OnLoad = "Load event handler"
OnPreRender = "PreRender event handler"
OnUnload = "Unload event handler"
RowSpan = integer
runat = "server"
SkinID = "string"
Style = "string"
TabIndex = integer
Text = "string"
ToolTip = "string"
VerticalAlign = "NotSet | Top | Middle | Bottom"
Visible = "True | False"
Width = size
Wrap = "True | False"
/>
<asp:TableHeaderCell
AbbreviatedText = "string"
AccessKey = "string"
AssociatedHeaderCellID = "string"
BackColor = "color name | #dddddd"
BorderColor = "color name | #dddddd"
BorderStyle = "NotSet | None | Dotted | Dashed | Solid | Double |
Groove | Ridge | Inset | Outset"
BorderWidth = size
CategoryText = "string"
ColumnSpan = integer
CssClass = "string"
Enabled = "True | False"
EnableTheming = "True | False"
EnableViewState = "True | False"
Font-Bold = "True | False"
Font-Italic = "True | False"
Font-Names = "string"
Font-Overline = "True | False"
Font-Size = "string | Smaller | Larger | XX-Small |
X-Small | Small | Medium | Large | X-Large | XX-Large"
Font-Strikeout = "True | False"
Font-Underline = "True | False"
ForeColor = "color name | #dddddd"
Height = size
HorizontalAlign = "NotSet | Left | Center | Right | Justify"
ID = "string"
OnDataBinding = "DataBinding event handler"
OnDisposed = "Disposed event handler"
OnInit = "Init event handler"
OnLoad = "Load event handler"
OnPreRender = "PreRender event handler"
OnUnload = "Unload event handler"
RowSpan = integer
runat = "server"
Scope = "NotSet | Row | Column"
SkinID = "string"
Style = "string"
TabIndex = integer
Text = "string"
ToolTip = "string"
VerticalAlign = "NotSet | Top | Middle | Bottom"
Visible = "True | False"
Width = size
Wrap = "True | False"
/>
</asp:TableRow>
For information on the individual members of this class, see TableRow in the class library.
The TableRow class represents a row in a Table control.
This class allows you to control how the contents of the row are displayed. Setting the HorizontalAlign and VerticalAlign properties specifies the alignment of the contents in the row.
You can programmatically manage the cells in the row by using the Cells collection. The Cells collection is a collection of TableCell objects that represent the cells in the row.
TableRow Class Table, TableRow, and TableCell Web Server Controls