Bahan data-grid yang dipilih sebelumnya-UI

const apiRef = React.useRef<GridApi>(null);

...

<DataGrid
  components={{
    noRowsOverlay: (params) => {
      if (!apiRef.current) {
        apiRef.current = params.api.current;
      }
      return <div>No rows</div>;
    }
  }}
  {...}
/>
Difficult Dunlin