> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# ITableRowDefinition

- Package: [@gooddata/sdk-ui](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/index.md)
- Kind: type-alias
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui/src/base/results/tableData/interfaces/rows.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Union of all possible row types in the table data structure.

Think of the final table as a stack of these row types: 1. \*\*Value rows\*\* – normal data rows (one per combination of row attributes) 2. \*\*Subtotal rows\*\* – subtotal rows (only when subtotals are configured) 3. \*\*Grand-total rows\*\* – grand-total rows (only when grand totals are configured)

The exact mix depends on your configuration (pivoting, transposition, totals settings).

\*\*Example layout (no transposition, subtotals + grand totals enabled):\*\*

```tsx
| Country     | City     | Q1 Sales | Q2 Sales |
|-------------|----------|----------|----------|
| USA         | NYC      |      100 |      150 |   <- value row
| USA         | LA       |      200 |      250 |   <- value row
| USA         | SUBTOTAL |      300 |      400 |   <- subtotal row
| CAN         | TOR      |       80 |       90 |   <- value row
| CAN         | SUBTOTAL |       80 |       90 |   <- subtotal row
| GRAND TOTAL |          |      380 |      490 |   <- grand-total row
```

**Signature:**

```typescript
export type ITableRowDefinition = ITableValueRowDefinition | ITableSubtotalRowDefinition | ITableGrandTotalRowDefinition;
```
**References:** [ITableValueRowDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.itablevaluerowdefinition/index.md), [ITableSubtotalRowDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.itablesubtotalrowdefinition/index.md), [ITableGrandTotalRowDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.itablegrandtotalrowdefinition/index.md)
