# spreadsheet-editor-default

> Spreadsheet editor with formulas, formatting, and styled headers with common data entry tools.

**Framework:** blazor  **Component:** Spreadsheet  **Variant:** default

## 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-default.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-default/SpreadSheetEditor.razor

```razor
@page "/spreadsheet/default"
@namespace blazor.Components.Pages.Default.Default
@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 spreadsheet is loaded from an Excel file that ships with the sample.
    public byte[] DataSourceBytes { get; set; } = Array.Empty<byte>();

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

```

### src/components/spreadsheet-editor-default/sales-report.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]��֦�   $     xl/workbook.xml���N�0�����l����!핟���6�#;��=��m�f<�p�(ٽ�hb���!��Gx~����-P�	G�D���Y./�g~���j��+��{�H�,,%4;��
��+b+�_wݍ/!l	��'��%�x��kAj[�`��뚪�U�y��6�b�CFuXY�}+�h��O��)�O��5��G8}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]Cd�8  B     xl/worksheets/sheet1.xml��]o�0���+,߃�	m:U�4i��v��K'�4(`#�I����P6/w�zx�����lrmj%3�% 7���kF�}}�+d%%!�g0�>���ޛ�%��dtgm��1��A+L�:�nf�t+���Wf:���a<�nX+jI�t�^��\�I�Vj�w>V���NH 痮�mF9%Vu�`kh��.g������$�Z��Z����?X7���H��MA��?�<��D���7}c�Čֲ�%�X��kGؼ8�:e�}�c�7f�c>�
(�!�QXB��ĹiI��p>���9�g�,`�\�� ��s'�|2ɯ�$K̥�\�H�C���\z��PՖBc؃�O�(����8�1����6��ͮ	[a�|�(C
�j�f(}뿸�a%���$�16�A����c<N�0�'c�k�
̘��aH�C>h �)�V&�s�[?���c�惫�m�zvW2�J��*1W>jt�!���npu�d����9�>jT6�S���'!���x����PK    phZ]�]U��   3             �    [Content_Types].xmlPK    phZ]~o���   *             �/  _rels/.relsPK    phZ]��֦�   $             �	  xl/workbook.xmlPK    phZ]�o<|�   )             ��  xl/_rels/workbook.xml.relsPK    phZ]Cd�8  B             ��  xl/worksheets/sheet1.xmlPK      E  )    
```
