# spreadsheet-editor-freeze-pane

> Spreadsheet editor freezing rows and columns during scrolling to keep key information visible.

**Framework:** blazor  **Component:** Spreadsheet  **Variant:** freeze-pane

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/blazor/spreadsheet-editor-freeze-pane.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Blazor.Spreadsheet
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/spreadsheet-editor-freeze-pane/SpreadSheetEditor.razor

```razor
@page "/spreadsheet/freeze-pane"
@namespace blazor.Components.Pages.FreezePane.FreezePane
@using Syncfusion.Blazor.Spreadsheet
@using System.IO

<div class="col-lg-12 control-section">
    <div class="content-wrapper">
        <div class="row">
            <div>
                <SfSpreadsheet DataSource="@DataSourceBytes"></SfSpreadsheet>
            </div>
        </div>
    </div>
</div>

@code {
    // The workbook is created with frozen header panes so the month column
    // and the header band stay in view while scrolling.
    public byte[] DataSourceBytes { get; set; } = Array.Empty<byte>();

    protected override void OnInitialized()
    {
        string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "src", "blazor", "spreadsheet-editor", "freeze-pane", "pay-sheet.xlsx");
        DataSourceBytes = File.ReadAllBytes(filePath);
    }
}

```

### src/components/spreadsheet-editor-freeze-pane/pay-sheet.xlsx

```xlsx
PK    phZ]�]U��   3     [Content_Types].xml�Q�N�0�y
�k;e@5�P`�� �}I��O>��o��BT������ڌβ&2�7|)j�Ы�����{�n9�^�~D���jw�H��=5��9�II�G$BD_�6$����� �뺾�*��>Wy����[����r?5Ih���9�5b�FA.�<x�-���E9s�7�����	�9�K�\'��R~Whr��=��-�A��r�gh[�P�wE"(&M=bvV�S80~�3��<�����."�?_ PK    phZ]~o���   *     _rels/.rels��;�0��SD�iZ�PC�����}�I%�ۓ*F��?�e5͞��HV@����*jG��5��X�ҶR�E�N��ZƔ	��K��ݑ�42d�ЦNG�ȘJ�s'�${�<�s�i�
eu+��m�Y��S׍
Ϥm��c5�d�{�f�_�;є%x:��xzPK    phZ] �rH�   !     xl/workbook.xml�O�n�@��+�ˆ�*J�!q���۬CVd���>�{LS�ƣьg��o��7�&�6�
R�1ѩ�������@1LL���ݪ�a92���I[K�k�1]�d���C1*'��`�:"�<��z�9$�%��G2xR�;�2RYB�P���iV�j/�[�Q�V�-\���ۚ��'u�Cq�k��s�����
PK    phZ]�o<|�   )     xl/_rels/workbook.xml.rels���
�0�OQrw�<�Ⱥ]D�U��.�`[[�����x<��O~!y��'q'σ5�$AF�f0��k}�@pP�Q�5$a!�����T�;��EDK�CpGD�=͊��Ĥ�~V!��C���:�]���P�LQ5|�d ���?�m�A����L&�8��G�BD��(H���%K�
X���xPK    phZ]2�X��       xl/worksheets/sheet1.xml��AO�0���+,��i�J�JCa%��ݻI��"�#�J��z�B����~3/ϟ'r|��*Q�%<;0��Bȗ���:����\�T�����N�W���}@�o��/	1�*n�U�U6JWܺ�~!������*IsRq!q��v�h�ڈg�^�ͯ"��묹�_ץ�	1�����]BY&xA1�<�����ZU���u�F�7���1郎ןȸ�i��iw+.8o��KL���������9l�����ĺO��;õ�p͍�њ�\�G|K��	a�@'��ϟ-F�oN���V>���X�����l�]?���A854�Bkn�YL��k�
� �^�>
�P���p��>t6����oT����T���� t��C܌z����z��4U�SE�Tt�*�.���
�!ny�"U䡊��XO�&��1*��і��!n�<T�C�<T�CE��9ҿ��;PK    phZ]�]U��   3             �    [Content_Types].xmlPK    phZ]~o���   *             �/  _rels/.relsPK    phZ] �rH�   !             �	  xl/workbook.xmlPK    phZ]�o<|�   )             ��  xl/_rels/workbook.xml.relsPK    phZ]2�X��               ��  xl/worksheets/sheet1.xmlPK      E  �    
```
