Grid selection

How disable such selection in grid

[image]
(http://prntscr.com/lg6mxz)

Hello. You can do that with grid.setSelectionMode(GridSelectionMode.NONE);
https://vaadin.com/api/platform/11.0.1/com/vaadin/flow/component/grid/Grid.html#setSelectionMode-com.vaadin.flow.component.grid.Grid.SelectionMode-

It’s not working for me

  1. http://prntscr.com/lg9exq
  2. And now I can’t select row to edit it

Oops, I misinterpreted your first question, sorry.

For preventing the user to select text content, you need to use the css in a custom style module

[part~="cell"]
 ::slotted(vaadin-grid-cell-content) {
  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
  user-select: none;
}