# GetRowsResult

> _Since v2.0.0_

Result returned from ServerSideDataSource.getRows.

#### Example

```typescript
// Known total (pagination-style)
return { rows: pageData, totalNodeCount: 5000 };

// Infinite scroll — set lastNode when the final page is reached
return { rows: pageData, totalNodeCount: -1, lastNode: absoluteLastIndex };
```

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `rows` | <code>TRow[]</code> | The fetched top-level node objects for the requested range. |
| `totalNodeCount` | <code>number</code> | Total number of top-level nodes available on the server. Use `-1` if unknown (infinite scroll mode). |
| `lastNode?` | <code>number</code> | The absolute index of the last available node. Only needed for **infinite scroll** when `totalNodeCount` is `-1`. Once the server returns the final page, set this so the grid knows scrolling has reached the end and stops requesting further blocks. |
