DataControlField::HeaderStyle Property
Gets or sets the style of the header of the data control field.
Assembly: System.Web (in System.Web.dll)
[PersistenceModeAttribute(PersistenceMode::InnerProperty)] public: property TableItemStyle^ HeaderStyle { TableItemStyle^ get (); }
Property Value
Type: System.Web.UI.WebControls::TableItemStyleA TableItemStyle that governs the appearance of the DataControlField header item.
The HeaderStyle property governs the appearance of any text displayed in the header item of a type derived from DataControlField. The most common application of the HeaderStyle property is to alter the style of the column headers in a GridView control.
The following code example demonstrates how to declaratively set the HeaderStyle property of a HyperLinkField column, which displays a yellow background color for the column header in the GridView control.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.