Click or drag to resize

GridViewSelectionPreserver Property

Gets a new selection preserver instance for the grid.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public ISelectionPreserver SelectionPreserver { get; }

Property Value

Type: ISelectionPreserver
A new instance of the selection preserver.


This is used to keep the selected items consistent for a grid when changing the DataStore collection dramatically, such as filtering or sorting the collection. Events such as removing or adding rows will always keep the selection of existing rows.
See Also