Click or drag to resize

GridAllowEmptySelection Property

Gets or sets a value indicating that the user can clear the selection.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
[DefaultValueAttribute(true)]
public bool AllowEmptySelection { get; set; }

Property Value

Type: Boolean
Remarks
When true, the user can deselect the item by cmd/ctrl+click the last selected row, or by clicking on the empty space in the Grid. Some platforms may have empty space to the right, and some only have space at the bottom. When false, this setting will make it so the user cannot deselect the last selected item, and the control will initially select the first item when setting the DataStore property. This does not affect the ability to clear the selection programmatically.
See Also