DataControlFieldHeaderCell.Scope Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the header cell's scope within an HTML table.

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

public virtual TableHeaderScope Scope { get; set; }

Property Value

Type: System.Web.UI.WebControls.TableHeaderScope

One of the TableHeaderScope values. The default is TableHeaderScope.NotSet.

The value of the Scope property is rendered as an HTML scope attribute by the DataControlFieldHeaderCell object. Although the Scope property is initialized to NotSet, you should set it to either Column or Row, depending on the cells that the header represents.

The value of the Scope property is stored in view state.

.NET Framework
Available since 2.0
Return to top