Skip to main content

selectedRows

Description

Optional. Marks rows as selected

Usage

selectedRows?: string | number | [];

Parameters

An array of the IDs of the selected rows or single row ID.

Example

The example below shows how to select rows at the initialization.

const { data, columns } = getData();

export default function App() {
return (
<Grid
data={data}
columns={columns}
selectedRows={[11, 12]}
/>
);
}

Related articles: select-row