Grid Header
The grid header is a special band that displays column names and provides user interaction for sorting and resizing columns.Basic Header Configuration
Header Styling
Column Header Text
Customize individual column headers:Header Sorting
Enable Sorting
Enable column sorting through header clicks:Custom Sort Indicators
The header displays sort indicators (arrows) for sorted columns:Sort State Control
Control and query sort state programmatically:Multi-Level Headers
Create hierarchical column headers using sub-columns:Row Lines Between Header Levels
Style the lines separating header levels:Column Interaction
Column Resizing
Allow users to resize columns by dragging:Column Dragging
Allow users to reorder columns by dragging:Hover Effects
Highlight columns on mouse hover:Selected Column
Highlight the selected column:Header Margins
Control spacing inside header cells:Footer Bands
Add footer bands to display summaries, totals, or custom content.Adding Text Footers
Multiple Footer Bands
Custom Footer Bands
Create custom footer bands with specific functionality:Footer Visibility
Complete Example: Styled Header with Footers
Header Events
Best Practices
Header height for multi-level columns
Header height for multi-level columns
When using sub-columns, the header height automatically adjusts to accommodate all levels. Use
RowLines to visually separate levels.Consistent header styling
Consistent header styling
Set
ParentFormat := True for column headers to maintain consistent styling unless you need column-specific formatting.Footer updates
Footer updates
Resize tolerance
Resize tolerance
Adjust
ResizeTolerance based on your UI density. Higher values (5-8) make it easier for users to grab column edges.Related Topics
Columns
Learn about column configuration and properties
Sorting
Implement data sorting in your grid
Custom Bands
Create custom grid bands
TColumnHeaderBand API
Complete API reference for header bands
