Prevent rows/cells from being selected in any way

How to disable the opportunity to be selected for the summary rows and their cells by all cases:

  • Manual selection started on summary cell
  • Manual selection started on not summary cell
  • Click to topleft cell
  • Click to summary row header
  • click to any column header
  • Press Ctrl(Cmd) + A

How to do not select the summary in any cases?

Hi @mr.marving

Thank you for contacting us. I’m not sure about your expected results here. Can you please share some images, video recording or code demo?

Thanks for your reply! I want to prevent summary cells from being selected whenever I try to select cells in the table. As you know, there are many ways to select cells—using the mouse, using keyboard shortcuts, or clicking the top-left cell. How can I prevent summary cells from being selected under any circumstances?

Hi @mr.marving

Thank you for the details. In this case I think you can try several options. First, you can check this option, that will allow you to disable the visual selection: Options API reference - JavaScript Data Grid | Handsontable I would recommend to run this option within the afterDocumentKeyDownor afterOnCellMouseDown hooks with the updateSettingsto apply it only for your chosen range of cells.

Here are all the links: