Forum Discussion

Nic_ol's avatar
Nic_ol
Copper Contributor
Jun 24, 2022
Solved

SharePoint List Web Part- Freeze column headings when scrolling down

Hi,

 

Does anyone know if there is a way to freeze the column headings when scrolling down a list in an SharePoint List Web Part?

 

There don't seem to be any options to turn such a function on in the List Web part settings. It is difficult to navigate long lists embedded in a SharePoint page otherwise.

 

Thanks,

Nic

  • Nic_ol there are several requests for this which you can vote for on the feedback portal, for example here. The script editor web part is not available in the modern experience and if your company is anything like mine you might not be able to use SPFx! :smile:

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    Nic_ol there are several requests for this which you can vote for on the feedback portal, for example here. The script editor web part is not available in the modern experience and if your company is anything like mine you might not be able to use SPFx! :smile:

     

    Rob
    Los Gallardos
    Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)

  • Joao Livio's avatar
    Joao Livio
    Iron Contributor

    Nic_ol 

     

    You can do that with a Script Editor Webpart if you have access to it. But you have more options to inject CSS with SPFx.

     

    Something like this but you have to find the correct classes, maybe they changed

     

    <STYLE>
        .ms-viewheadertr {
            display: block;
            position: relative;
        }
    
        .ms-listviewtable tbody {
            display: block;
            overflow: auto;
            height: 300px;
        }
    </STYLE>
    • Nic_ol's avatar
      Nic_ol
      Copper Contributor

      Hi Joao Livio,

       

      Thank you for the info. Unfortunately I don't have access to either of your suggestions, but I appreciate your efforts.

       

      Kind regards,

      Nic

Resources