# spreadsheet-outlining

> SfSpreadsheet with data outlining, grouped rows/columns, and collapsible hierarchy visualization.

**Framework:** wpf  **Component:** Spreadsheet  **Variant:** outlining

## 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/wpf/spreadsheet-outlining.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.SfSpreadsheet.WPF
```

**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-outlining/Spreadsheet.xaml

```xaml
<UserControl
    x:Class="SpreadsheetOutlining.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
    SnapsToDevicePixels="True">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!-- The ribbon that hosts the grouping and outline commands -->
        <syncfusion:SfSpreadsheetRibbon x:Name="sfSpreadsheetRibbon"
                                        Grid.Row="0"
                                        DataContext="{Binding ElementName=spreadsheetControl}" />

        <!-- The workbook with its outline groups -->
        <syncfusion:SfSpreadsheet x:Name="spreadsheetControl"
                                  Grid.Row="1"
                                  FormulaBarVisibility="Visible"
                                  WorkbookLoaded="spreadsheetControl_WorkbookLoaded" />
    </Grid>
</UserControl>

```
