API REFERENCE

getRowId

Returns a stable, unique row ID. The same business row must retain its ID after sorting, filtering, and editing.

What does this API do?

Returns a stable, unique row ID. The same business row must retain its ID after sorting, filtering, and editing.

Exact input and result types

typescript
getRowId: (row: Readonly<GridData>) => GridRowId
ItemValue
JavaScript namegetRowId
HTML attributeget-row-id
Defaultundefined
Input type(row: Readonly<GridData>) => GridRowId

Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples