Syncfusion.Grid.Windows


Syncfusion.Windows.Forms.Grid Namespace > GridModelOptions Class : SelectCellsMouseButtonsMask Property

SelectCellsMouseButtonsMask Property (GridModelOptions)

Gets or sets which mouse buttons can be used for selecting cells.
Syntax
'Declaration
 
<CategoryAttribute("Behavior-Selection")>
<BrowsableAttribute(True)>
<DescriptionAttribute("Defines which mouse buttons can be used for selecting cells.")>
<EditorAttribute(Syncfusion.Windows.Forms.Design.EnumFlagsEditor, System.Drawing.Design.UITypeEditor)>
<DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
Public Property SelectCellsMouseButtonsMask As MouseButtons
'Usage
 
Dim instance As GridModelOptions
Dim value As MouseButtons
 
instance.SelectCellsMouseButtonsMask = value
 
value = instance.SelectCellsMouseButtonsMask
[Category("Behavior-Selection")]
[Browsable(true)]
[Description("Defines which mouse buttons can be used for selecting cells.")]
[Editor(Syncfusion.Windows.Forms.Design.EnumFlagsEditor, System.Drawing.Design.UITypeEditor)]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
public MouseButtons SelectCellsMouseButtonsMask {get; set;}

Property Value

A GridSelectionFlags that specifies options to be applied.
Remarks
You can customize the mouse controller's behavior at run-time while the user is performing the action by subscribing to the SelectionChanging and SelectionChanged events.

The AllowSelection property lets you further customize selection behavior.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also