Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Error: Material-UI: The data grid component requires all rows to have a unique id property.

getRowId={(row) => row._id}
  <DataGrid
        rows={rows}
        columns={columns}
        pagination
        pageSize={dummytranfers.totalPages}
        getRowId={(row) => row.no}
        paginationMode="server"
        onPageChange={(newPage) => setPage(newPage)}
        loading={loading}
      />
//as attritube in side DataGrid mui
 
PREVIOUS NEXT
Tagged: #The #data #grid #component #requires #rows #unique #id
ADD COMMENT
Topic
Name
9+8 =