ASP.NET Syntax ASP.NET Syntax for Web Controls
Allows you to declare a table cell and manipulate it programmatically.
Declarative Syntax
<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:TableCell>
For information on the individual members of this class, see TableCell in the class library.
The TableCell control represents a cell in a Table control. You can use the Text property to specify or determine the contents of the cell.
This class allows you to control how the contents of the cell are displayed. Setting the HorizontalAlign and VerticalAlign properties specifies the alignment of the contents in the cell. You can use the Wrap property to specify whether the contents of the cell wrap in the cell.
You can also specify how many rows or columns in the Table control occupy an individual cell. The RowSpan and ColumnSpan properties control how may rows and columns are used, respectively.
TableCell Class Table, TableRow, and TableCell Web Server Controls