If you want to freeze a row at the top of the window, select the row below it, and then choose Freeze Panes from the Window ...