Spread WPF Documentation
SelectionPolicy Enumeration
Example Example 


GrapeCity.Windows.SpreadSheet.Data Namespace : SelectionPolicy Enumeration
Specifies how users can select items in the control.
Syntax
'Declaration
 
Public Enum SelectionPolicy 
   Inherits System.Enum
'Usage
 
Dim instance As SelectionPolicy
public enum SelectionPolicy : System.Enum 
Members
MemberDescription
MultiRange[2] Allows users to select single items and ranges of items, including multiple ranges.
Range[1] Allows users to select single items and ranges of items, but not multiple ranges.
Single[0] Allows users to only select single items.
Example
This example uses the SelectionPolicy enumeration.
gcSpreadSheet1.Sheets[0].SelectionPolicy = GrapeCity.Windows.SpreadSheet.Data.SelectionPolicy.Single;
gcSpreadSheet1.Sheets[0].SelectionUnit = GrapeCity.Windows.SpreadSheet.Data.SelectionUnit.Cell;
GcSpreadSheet1.Sheets(0).SelectionPolicy = GrapeCity.Windows.SpreadSheet.Data.SelectionPolicy.Single
GcSpreadSheet1.Sheets(0).SelectionUnit = GrapeCity.Windows.SpreadSheet.Data.SelectionUnit.Cell
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Windows.SpreadSheet.Data.SelectionPolicy

See Also

Reference

GrapeCity.Windows.SpreadSheet.Data Namespace