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; }
<DefaultValueAttribute(true)>
Public Property AllowEmptySelection As Boolean
Get
Set
[<DefaultValueAttribute(true)>]
member AllowEmptySelection : bool with get, set
Property Value
Type:
BooleanRemarks
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