System.Web.UI.WebControls Namespace DataControlField Class
.NET Framework version 2.0
Sets or retrieves the style properties for the header section of a DataControlField.
Script |
DataControlField.HeaderStyle.Property [ = enumValue ] |
A TableItemStyle object that defines the style properties for the header section of a DataControlField.
Use the HeaderStyle property to provide a custom style for the header row in types that derive from the DataControlField class. Common style attributes that can be set include forecolor, backcolor, font, and content alignment within the cell. Providing different item styles enhances the appearance of the DataControlField control.
The HeaderStyle subproperties can be set declaratively using either of the following methods:
The subproperties can also be set programmatically in the form HeaderStyle.Property.
For a list of style properties that can be set, see the TableItemStyle class.
DataControlField Members ControlStyle FooterStyle ItemStyle