# ExcelStyleConfig

> _Since v2.0.0_

Configuration for styled Excel export.

Controls header styles, per-column and per-cell formatting,
column widths, and auto-fit behavior in Excel XML output.

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `headerStyle?` | <code><a href="/grid/plugins/export/interfaces/excelcellstyle/">ExcelCellStyle</a></code> | Style applied to all header cells |
| `groupHeaderStyle?` | <code><a href="/grid/plugins/export/interfaces/excelcellstyle/">ExcelCellStyle</a></code> | Style applied to cells in **plugin-contributed header rows** (e.g. the column-group header row). Falls back to `headerStyle` when omitted. <span class="since-badge" title="Introduced in v2.10.0">v2.10.0+</span> |
| `defaultStyle?` | <code><a href="/grid/plugins/export/interfaces/excelcellstyle/">ExcelCellStyle</a></code> | Default style for all data cells |
| `columnStyles?` | <code>Record&lt;string, <a href="/grid/plugins/export/interfaces/excelcellstyle/">ExcelCellStyle</a>&gt;</code> | Per-column style overrides (keyed by field name) |
| `cellStyle?` | <code>(value: unknown, field: string, row: unknown) =&gt; <a href="/grid/plugins/export/interfaces/excelcellstyle/">ExcelCellStyle</a> &#124; undefined</code> | Callback for per-cell dynamic styling |
| `columnWidths?` | <code>Record&lt;string, number&gt;</code> | Column width overrides in characters (keyed by field name) |
| `autoFitColumns?` | <code>boolean</code> | Auto-fit column widths based on content (default: false) |
