The Table control allows you to declare a table and manipulate it programmatically. A Table control can include individual TableRow and TableCell items that declare the contents of the table. You can declare as many table rows and cells as you like.
Required properties are noted in boldface type.
<asp:Table id="Table1" runat="server" BackImageUrl="url" CellSpacing="cellspacing" CellPadding="cellpadding" GridLines="None|Columns|Rows|Both" HorizontalAlign="Center|Justify|Left|NotSet|Right" /> <asp:TableRow> <asp:TableCell> Cell text </asp:TableCell> </asp:TableRow> </asp:Table>
Property | Description |
---|---|
(Base control properties) | The properties defined in Base Web Control Properties. |
BackImageUrl | The URL of an image to display. |
CellPadding | The amount of space, in pixels, between the contents of a cell and the cell's border.
When programming, this property is set using Units. |
CellSpacing | The amount of space, in pixels, between cells.
When programming, this property is set using Units. |
GridLines | Whether grid lines are displayed in the table. The default is None.
Note Gridlines can be displayed only in browsers that support CSS stylesheets. When programming, this property is set using the GridLinesRule enumeration. |
HorizontalAlign | The alignment of the table with respect to surrounding text.
When programming, you set this property using the HorizontalAlign enumeration. |
Rows | Collection of TableRow objects representing individual rows in the table.
This property is only used when programming. At design time, you set this property by declaring TableRow controls. |
[To be supplied.]
See Also