> Markdown version of [Context Menus](https://vaadin.com/docs/v8/spreadsheet/spreadsheet-contextmenu). Section index: [llms.txt](https://vaadin.com/docs/v8/spreadsheet/llms.txt)

# <a id="spreadsheet.contextmenu"></a>Context Menus

Grid has a context menu, which can be used for various editing functions. The context menu uses the standard Vaadin action handler mechanism.

## <a id="spreadsheet.contextmenu.default"></a>Default Context Menu

The SpreadsheetDefaultActionHandler provides a ready set of common spreadsheet editing operations.

- Add, delete, hide, and show rows and columns

- Insert, edit, and delete cell comments

- Merge and unmerge cells

- Add filter table to selected range

The default context menu is not enabled by default; to enable it, you need to create and set it as the action handler explicitly.

```
sheet.addActionHandler(new SpreadsheetDefaultActionHandler());
```

## <a id="spreadsheet.contextmenu.custom"></a>Custom Context Menus

You can implement custom context menus either by implementing an ActionHandler or extending the SpreadsheetDefaultActionHandler. The source code of the default handler should serve as a good example of implementing context menu items for different purposes.
