# DataGridCellProps (@salmonui/data-grid)

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

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

```ts
import type { DataGridCellProps } 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 DataGridCellProps<Row> {
    rowId: RowId;
    column: CompiledColumn<Row>;
    rowIndex: number;
    colIndex: number;
    colSpan?: number;
    rowSpan?: number;
    spanStyle?: CSSProperties | undefined;
    spanAnchor?: boolean;
    renderKey?: number | undefined;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowId` | `rowId: RowId;` |  |  |
| `column` | `column: CompiledColumn<Row>;` |  |  |
| `rowIndex` | `rowIndex: number;` |  |  |
| `colIndex` | `colIndex: number;` |  | 1-based `aria-colindex` (display position among visible leaves). |
| `colSpan` | `colSpan?: number;` | optional | Cell span: `aria-colspan` / `aria-rowspan` and the spanned width/height. |
| `rowSpan` | `rowSpan?: number;` | optional |  |
| `spanStyle` | `spanStyle?: CSSProperties \| undefined;` | optional |  |
| `spanAnchor` | `spanAnchor?: boolean;` | optional | A row span whose first row is above the rendered window, drawn in the window's first row: the cell carries its own `data-row-id` so pointer, focus and context-menu targets resolve to the span's row. |
| `renderKey` | `renderKey?: number \| undefined;` | optional | Render key of the column's render-only fields (`renderCell`, `cellClassName`, ...): changes when one of them changed without a recompile, so `memo` re-renders this column's cells only. |
