Forum Discussion
Nic_ol
Jun 24, 2022Copper Contributor
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!
Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)
- RobElliottSilver 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!
Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)- Joao LivioIron Contributor
- Nic_olCopper Contributor
HiRobElliott,
Thank you for your advice and suggestion. I have voted to have this feature added accordingly. If anyone else would find this feature helpful, they can vote for it here:
https://feedbackportal.microsoft.com/feedback/idea/c929c2b3-70c0-ec11-a81b-000d3a03dba2
Kind regards,
Nic
- Joao LivioIron Contributor
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_olCopper 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