# GridRow

Fields, allowed values, and APIs that use GridRow.

Canonical: https://grid.syidax.com/docs/types/GridRow/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export interface GridRow {
  [key: string]: string | number | boolean | null;
}
```

<a id="used-by"></a>

## APIs using this type

- [serverSideDatasource](https://grid.syidax.com/docs/options/serverSideDatasource.md) — Data provider for a row model where the server handles sorting, filtering, grouping, and related requests.
- [viewportDatasource](https://grid.syidax.com/docs/options/viewportDatasource.md) — Viewport model supplying data for visible row ranges. Implement initialization, range changes, and cleanup.
- [contextMenuItemsCallback](https://grid.syidax.com/docs/options/contextMenuItemsCallback.md) — Returns cell context-menu items. Replaces the entire default list rather than appending to it.
- [rows](https://grid.syidax.com/docs/options/rows.md) — Compatibility input for source rows. Prefer rowData in new configurations and avoid conflicting inputs.
- [isFullWidthRow](https://grid.syidax.com/docs/options/isFullWidthRow.md) — Determines whether a row uses a full-width layout instead of individual column cells.
- [fullWidthCellRenderer](https://grid.syidax.com/docs/options/fullWidthCellRenderer.md) — Renderer for full-width row content. Uses a different input contract from regular cell renderers.
- [fullWidthRowHeight](https://grid.syidax.com/docs/options/fullWidthRowHeight.md) — Fixed height or per-row height function for full-width rows.
- [pinnedTopRowData](https://grid.syidax.com/docs/options/pinnedTopRowData.md) — Row data pinned above the scrolling table.
- [pinnedBottomRowData](https://grid.syidax.com/docs/options/pinnedBottomRowData.md) — Row data pinned below the scrolling table.
- [diffSnapshots](https://grid.syidax.com/docs/methods/diffSnapshots.md) — Compares two snapshots or a snapshot with current data. Omit the second ID to compare against current data.
- [applyTransaction](https://grid.syidax.com/docs/methods/applyTransaction.md) — Adds, updates, and removes source rows by stable ID. Inspect results separately from app server saving.
- [getDataAsCsv](https://grid.syidax.com/docs/methods/getDataAsCsv.md) — Returns an object with CSV text and output row/column counts. Read the string from its csv field.
- [exportDataAsCsv](https://grid.syidax.com/docs/methods/exportDataAsCsv.md) — Downloads CSV using current export conditions and returns the export result.
- [getFullWidthRowInfo](https://grid.syidax.com/docs/methods/getFullWidthRowInfo.md) — Reads one full-width row's information, or the complete layout report when no argument is supplied.
- [setPinnedRows](https://grid.syidax.com/docs/methods/setPinnedRows.md) — Sets top/bottom pinned row data and returns the application result.
- [getPinnedRows](https://grid.syidax.com/docs/methods/getPinnedRows.md) — Reads current pinned row data as a report.
- [getPinnedRowInfo](https://grid.syidax.com/docs/methods/getPinnedRowInfo.md) — Reads details of a specified pinned row.
- [detailRowCreated](https://grid.syidax.com/docs/events/detailRowCreated.md) — Emitted when a detail panel is created. Connect app resources using its row ID and parent data.
- [pinnedRowsChanged](https://grid.syidax.com/docs/events/pinnedRowsChanged.md) — Emitted when top/bottom pinned row data changes.

<a id="parents"></a>

## Contracts containing this type

- [GridQueryResult](https://grid.syidax.com/docs/types/GridQueryResult.md)
- [SyGridPdfDownloadOptions](https://grid.syidax.com/docs/types/SyGridPdfDownloadOptions.md)
- [SyGridPdfExportOptions](https://grid.syidax.com/docs/types/SyGridPdfExportOptions.md)
