Remarks
Use the HtmlTable control to programmatically control the HTML <table> element on the server. This allows you to create a table on a Web page.
You can dynamically change the appearance of the <table> element by setting the BgColor, Border, BorderColor, Height, and Width properties. You can also control how the content of a cell is displayed by setting the Align, CellPadding, and CellSpacing properties.
The rows of the HtmlTable control are stored in the Rows property of the control. This allows you to programmatically access the individual rows of the table.
Note A complex table model is not supported. You cannot have an HtmlTable control that nests <caption>, <col>, <colgroup>, <tbody>, <thead>, or <tfoot> elements. These elements are removed without warning and do not appear in the output HTML. An exception will be thrown if you attempt to programmatically add these table model elements to the Control.Controls collection of the HtmlTable control.
For a list of initial property values for an instance of HtmlTable, see the HtmlTable constructor.
浙公网安备 33010602011771号