Skip to content

How to freeze the top row? #1495

Closed Answered by xuri
aphsa asked this question in Q&A
Mar 16, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Thanks for the feedback. This question similar with issue #981, please reference the documentation of the SetPanes function, we can freeze the first row like this:

err := f.SetPanes("Sheet1", &excelize.Panes{
    Freeze:      true,
    YSplit:      1,
    TopLeftCell: "A2",
    ActivePane:  "bottomLeft",
})

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aphsa
Comment options

@xuri
Comment options

Answer selected by aphsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants