Remove sort icon from grid's header

Hi, everyone.

I’m really struggling to find a way to remove the default sort icon from the grid’s header. Is there a way to do it?

Hi Victor,

if you want to get rid of sorting entirely, you can do that on the grid’s column like so:

Column col = grid.getColumn("firstName"); // or whatever col.setSortable(false); If you want to disable the sort icon but keep the sorting, you can do it with styles. The following seems to work with the Valo theme:

      .v-grid-header .sort-asc:after, .v-grid-header .sort-desc:after {
          content: none;
      }

Best regards,
Olli Tietäväinen
Vaadin Developer