System.Web.UI.WebControls.DataList.HeaderStyle Property

Gets the style properties for the heading section of the System.Web.UI.WebControls.DataList control.

Syntax

[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
[System.ComponentModel.DefaultValue(null)]
public virtual TableItemStyle HeaderStyle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to provide a custom style for the heading of the System.Web.UI.WebControls.DataList control. Common style attributes that can be adjusted include foreground color, background color, font, and content alignment within the cell. Providing a different style enhances the appearance of the System.Web.UI.WebControls.DataList control.

To specify a custom style for the heading section, place the <HeaderStyle> tags between the opening and closing tags of the System.Web.UI.WebControls.DataList control. You can then list the style attributes within the opening <HeaderStyle> tag.

Note:

The DataList.ShowHeader property must be set to true for this property to be visible.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0