# DataGridHeaderContext (@salmonui/data-grid)

> The DataGridHeaderContext interface of @salmonui/data-grid.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridHeaderContext

```ts
import type { DataGridHeaderContext } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridHeaderContext<Row> {
    column: DataGridColumnInfo<Row>;
    sortDirection: 'asc' | 'desc' | null;
    sortIndex: number;
    filtered: boolean;
    grouped: boolean;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `column` | `column: DataGridColumnInfo<Row>;` |  |  |
| `sortDirection` | `sortDirection: 'asc' \| 'desc' \| null;` |  | Null when the column is not sorted. |
| `sortIndex` | `sortIndex: number;` |  | Position in a multi-column sort (0-based); -1 when not sorted. |
| `filtered` | `filtered: boolean;` |  |  |
| `grouped` | `grouped: boolean;` |  |  |
