Fixed Header in Salesforce Lightning Web Component Datatable
To have fixed Header in Salesforce Lightning Web Component Lightning Datatable, set a height to the lightning datatable using a div tag. Sample Code: Apex Class: public class AccountController { ....