TableHeaderCell::Scope Property

 

Gets or sets the scope of the TableHeaderCell control when it is rendered.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property TableHeaderScope Scope {
	virtual TableHeaderScope get();
	virtual void set(TableHeaderScope value);
}

Property Value

Type: System.Web.UI.WebControls::TableHeaderScope

A 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: