asp.net.ph

Skip Navigation Links

HtmlTableCell Server Control

HtmlTable   HtmlTableRow


Represents the <td> and <th> HTML elements in an HtmlTableRow object.

The HtmlTable control <table runat=server> specifies a container for arranging content into rows and columns of cells. It behaves in much the same way as the standard HTML Table element, except that it is fully programmable.

The HtmlTable control lets you build up a table dynamically by adding HtmlTableRow controls to the table’s Rows collection and HtmlTableCell controls to the row’s Cells collection. You can add content to a table cell programmatically by adding controls to the cell’s Controls collection.

The following sample illustrates using the HtmlTable control.

Generating Table Rows and Cells Dynamically
Run Sample | View Source
See Also

HtmlTableCell Control Syntax   Table, TableRow, and TableCell Web Server Controls   HTML TD Element   HTML TH Element



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note