Search code examples
javascriptreactjsmaterial-uimui-datatable

Want hide all row select option but not multiple row select options from MUIDatatables.Is it possible?


I want to hide the checkbox from header row. From which all the rows can be selected. I just want to select multiple option by clicking each. So I want to hide all row select option.

enter image description here


Solution

  • I believe that selectableRowsHeader option is what you are looking for.

    <MUIDataTable
      title={"Title"}
      data={data}
      columns={columns}
      options={{
        selectableRowsHeader: false
      }}
    />
    

    https://codesandbox.io/s/muidatatables-hide-select-all-l8o1z?file=/index.js