Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Fixed/sticky column headers #8

@batiyaa

Description

@batiyaa

I have a listview, it has a datatable. How do I make the column names fixed so that when scrolling I can see the column names.

    table = ft.DataTable(
        columns=[
            ft.DataColumn(ft.Text("Fisrt")),
            ft.DataColumn(ft.Text("Second")),
        ],
        rows=rows,
    )
    
    listview = ft.ListView(expand=1, spacing=10, padding=20, on_scroll_interval=20)
    listview.controls.append(table)
    listview.on_scroll = on_scroll_event

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions