See Also       Example Send us your Feedback
SelectionMode Property
Returns or sets selection mode.

Read/Write at run time and design time.

Syntax

object.SelectionMode As sgSelectionMode

The object placeholder represents an object expression that evaluates to SGSelection and SGGrid objects.

Settings

 The SelectionMode settings are:
Name Value Description
sgSelectionNone 0 No selections.
sgSelectionFree 1 Select only rectangular cell area.
sgSelectionByRow 2 Select only rows.
sgSelectionByColumn 3 Select only columns.
sgSelectionByRowAndColumn 4 Select both rows and columns.
sgSelectionModeAll 5 Enable all selection modes.

 Remarks

Returns or sets a value indicating whether a user can select rows, columns or cells and how the selections can be made.

This property is a shortcut to the SelectionMode member of the SGSelection object.

 Show Example
 Copy Code     Show Me

Private Sub Form_Load()
   SGGrid1.SelectionMode = sgSelectionByRow
   SGGrid1.MultiSelect = sgMultiSelectExtended
   SGGrid1.SpecialMode = sgModeListBox
End Sub


Back to topic