DataTable header always visible

Hi,

Looks like easy thing, but could not find it in the documentation. Is there any way to keep header of DataTable always visible at the top of the screen (similar to freeze pane option in Excel).

When I have DataTable on a page, I can only scroll whole page so when I scroll down header gets hidden somewhere above the top.

Thank you in advance for your help.

Best,

1 Like

Hi @Hikari

See the example ā€œVertical Scroll With Fixed Headingsā€ on this page of the docs: DataTable Height | Dash for Python Documentation | Plotly

Perfect! Many thanks for quick help.

dash_table.DataTable(
    ...,
    fixed_rows={'headers': True},
)