Column headers identify columns in Grid Views, Banded Grid Views and Advanced Banded Grid Views. A column header contains:
The Column Header Panel contains the headers of all visible columns. Headers of grouped columns are displayed in the Group Panel. The Customization Form displays hidden columns' headers. Right-clicking a column header in the header panel or group panel activates the Column Header Context Menu.
The table below lists the main properties affecting element appearance.
Appearance
The GridViewAppearances.HeaderPanel property specifies appearance settings for all column headers. Individual columns may override these settings using the GridColumn.AppearanceHeader property.
To change the element's background color use the GridViewAppearances.HeaderPanel's BackColor property. Please note that the background color cannot be changed when the View is painted using the Windows XP or Office2003 paint style (see the BaseView.PaintStyleName property).
Custom Draw Event
GridView.CustomDrawColumnHeader
Visibility
The GridOptionsView.ShowColumnHeaders and GridOptionsView.ShowGroupPanel options specify whether or not to display the Column Header Panel and Group Panel respectively. A column's OptionsColumn.ShowInCustomizationForm option specifies whether or not the column header can appear in the Customization Form when hidden.
Contents
GridColumn.Image, GridColumn.ImageIndex, GridColumn.Caption
HTML tags can be used to format a column's caption, provided that the GridOptionsView.AllowHtmlDrawHeaders option is enabled.
Tooltips
GridOptionsHint.ShowColumnHeaderHints, GridColumn.ToolTip