Export (0) Print
Expand All

BaseDataList.UseAccessibleHeader Property

Gets or sets a value indicating whether the data listing control renders its header in an accessible format. This property is provided to make the control more accessible to users of assistive technology devices.

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

abstract UseAccessibleHeader : bool with get, set 
override UseAccessibleHeader : bool with get, set
<asp:BaseDataList UseAccessibleHeader="True|False" />

Property Value

Type: System.Boolean
true if the control renders its header in an accessible format; otherwise, false. The default is false.

Use the UseAccessibleHeader property to specify whether the data listing control renders its header in an accessible format. This property is provided to make the control more accessible to users of assistive technology devices. By default, the value of this property is false and the header for the control is rendered between cell tags <td> and </td>. If the value of this property is true, the header for the control is rendered between table header cell tags <th> and </th>. In addition, a scope="col" attribute is added to the table header to specify that the header applies to all the cells in the column. The default rendering of the <th> element is preserved, rendering text as bold and centered horizontally. Developers can override the behavior of the <th> element using a cascading style sheet (CSS). However, requiring the use of style sheets is discouraged when creating accessible Web pages.

For data listing controls, such as the DataList control and the DataGrid control, that inherit from the BaseDataList class, you can set the UseAccessibleHeader property declaratively or programmatically. If you set the UseAccessibleHeader property programmatically, set it before binding data with the DataBind method.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft