Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Binding to Data
   [Expand]Grid View
   [Expand]View Technology
   [Expand]Grouping
   [Expand]Sorting
   [Expand]Summaries
   [Expand]Data Editing
   [Expand]Filtering and Locating Rows
   [Expand]Focus and Selection Handling
   [Expand]Processing Rows
   [Expand]Formatting Cell Values
   [Expand]Master-Detail Relationships
   [Expand]Asynchronous Image Load
   [Expand]Export and Printing
   [Expand]Appearance and Conditional Formatting
   [Expand]Batch Modifications
   [Expand]Hit Information
   [Expand]Hints
   [Expand]Popup Menus
   [Expand]Saving and Restoring Layouts
   [Collapse]Visual Elements
    [Expand]Grid Control Elements
    [Expand]View Common Elements
    [Collapse]Grid View Elements
      Auto Filter Row
      Column
      Column Header
      Column Header Context Menu
      Column Header Image
      Column Header Panel
      Customization Form
      Data Row
      Empty Space
      Filter Button
      Fixed Panel Divider
      Footer Cell
      Footer Context Menu
      Group Expand Button
      Group Footer
      Group Panel
      Group Panel Context Menu
      Group Row
      Group Row Check Box Selector
      Header Panel Button
      Preview Section
      Row Cell
      Row Indicator Panel
      Row Separator
      Sort Glyph
      View Footer
    [Expand]Card View Elements
    [Expand]Layout View Elements
    [Expand]Banded Grid View Elements
    [Expand]Master-Detail Mode Related Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End-User Capabilities
    Included Components
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Column Header

Column headers identify columns in Grid Views, Banded Grid Views and Advanced Banded Grid Views. A column header contains:

  • a caption string identifying column content;
  • a column header image providing graphical information about column content;
  • a sort glyph identifying the data sort order (if any) applied to column values;
  • a filter button enabling end-users to filter column values.

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.

The element's background colors cannot be changed when the View is painted using the Windows XP, Office2003, or any skinning 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

Expanded See Also

How would you rate this topic?​​​​​​​