System.Web.UI.WebControls.TableHeaderRow Class

Represents a heading row in a System.Web.UI.WebControls.Table control.

See Also: TableHeaderRow Members

Syntax

public class TableHeaderRow : TableRow

Remarks

The System.Web.UI.WebControls.TableHeaderRow class represents a heading row in a System.Web.UI.WebControls.Table control. This class supports displaying tables on devices with a limited screen size. On these devices, a table with many columns and rows must be rendered across multiple pages. Adding a System.Web.UI.WebControls.TableHeaderRow to a System.Web.UI.WebControls.Table control allows you to specify a heading row that is rendered as the first row on each page that displays a view of the table. For more information about the view formats for a table rendered on a device with a limited screen size, see System.Web.UI.WebControls.Table.

A System.Web.UI.WebControls.TableHeaderRow object can contain only System.Web.UI.WebControls.TableCell objects. To add content to the System.Web.UI.WebControls.TableHeaderRow, you must add one or more System.Web.UI.WebControls.TableCell objects to the row. Then, set the TableCell.Text property of each System.Web.UI.WebControls.TableCell object in the row to specify the contents of each cell. Alternatively, you can add a control to a System.Web.UI.WebControls.TableCell object to specify its contents.

You can programmatically manage the cells in the System.Web.UI.WebControls.TableHeaderRow by using the TableRow.Cells collection. The TableRow.Cells collection is a collection of System.Web.UI.WebControls.TableCell objects that represent the cells in the row.

The System.Web.UI.WebControls.TableHeaderRow inherits properties from System.Web.UI.WebControls.TableRow that allow you to control how the contents in the row are displayed. For example, you can use the TableRow.HorizontalAlign and TableRow.VerticalAlign properties to specify the alignment of the contents.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0