# ISelectionPreserver interface

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public interface ISelectionPreserver : IDisposable
```

Interface for a control that can preserve selected items

**Remarks:** A selection preserver is used to save and restore the selected items when the data store changes dramatically after a sort or server-side filtering. Controls should implement [ISelectableControl<T>](https://eto.picoe.ca/api/type/eto.forms.iselectablecontrol-1.md) to create instances of the selection preserver.

## Properties

- [SelectedItems](https://eto.picoe.ca/api/type/eto.forms.iselectionpreserver/selecteditems.md): Gets or sets the selected items in the control.
