TableHeaderCell::Scope Property
Gets or sets the scope of the TableHeaderCell control when it is rendered.
Assembly: System.Web (in System.Web.dll)
public: virtual property TableHeaderScope Scope { TableHeaderScope get (); void set (TableHeaderScope value); }
<asp:TableHeaderCell Scope="TableHeaderScope" />
Property Value
Type: System.Web.UI.WebControls::TableHeaderScopeA TableHeaderScope value. The default is NotSet.
Use the Scope property to get or set the scope of the TableHeaderCell control when it is rendered. The scope of the TableHeaderCell represents the cells that the header applies to. For complex tables, use the AssociatedHeaderCellID property, which provides more control over the specification of the relationship of header cells to data cells. The Scope property is used to make HTML tables more accessible by providing information about relationships between the cells and the headers.
For a list of the available table header scopes, see TableHeaderScope.
The value of this property is stored in view state.
The following code example demonstrates how to program the Scope property declaratively. Note the use of the AssociatedHeaderCellID property.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.