Skip to main content
TeeGrid includes several pre-built themes and supports creating custom themes to match your application’s design.

Pre-Built Themes

TeeGrid includes these themes:
  • Default - Standard TeeGrid appearance
  • iOS - iOS-style theme with teal blue accents
  • Android - Material Design inspired theme
  • Black - Dark theme with light text

Applying Themes

Apply a theme using the TGridThemes helper:

VCL Style Themes

For VCL applications, integrate with Windows themes:

Getting Available VCL Themes

List all available VCL themes:

Creating Custom Themes

Create a custom theme using TCustomTheme:

Manual Theme Customization

Customize individual grid elements:

Row-Level Formatting

Format specific rows:

Cell-Level Formatting

Format individual cells:

Column-Level Formatting

Format entire columns:

Indicator Column

Customize the indicator column (row selector):

Parent Font

Make grid inherit font from parent control:

Scrollbar Styling

Scrollbars automatically adapt to themes, but you can customize them:

Responsive Font Sizing

Make fonts scale with DPI:

Theme Example with Switching

Implement theme switching in your application:

Dark Mode Support

Implement dark mode detection:

Saving Theme Preferences

Persist user theme selection:

Best Practices

  • Apply themes after loading data for consistent appearance
  • Use TGridThemes for quick, consistent styling
  • Combine themes with custom formatting for specific columns or cells
  • Make the grid ParentFont := True for consistent typography
  • Test themes with different screen DPI settings
  • Consider user preferences and system dark mode settings
  • Cache theme objects if switching frequently