![]() ![]() | ||
You can use the Table class to create an HTML table. Here is the hierarchy of this class:
Object Control WebControl Table
Table objects correspond to <table> elements in Web pages; to create an entire table, you'll also need TableRow and TableCell objects, as discussed in the In Depth section of this chapter.
You can find the notable public properties of Table objects in Table 16.16. (This class has no non-inherited methods or properties.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes-you can find them in Chapter 15, in Tables 15.1 to 15.5.
Property |
Means |
---|---|
BackImageUrl |
Indicates the URL of the background image to display behind the table. The image will be tiled if it is smaller than the table. |
CellPadding |
Gets/sets the distance (in pixels) between the border and the contents of the table cell. |
CellSpacing |
Gets/sets the distance (in pixels) between table cells. |
GridLines |
Gets/sets the gridlines property of the Table class. |
HorizontalAlign |
Gets/sets the horizontal alignment of the table within the page. |
Rows |
Gets the collection of rows within the table. |
![]() ![]() | ||