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")>
<DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
<BrowsableAttribute(True)>
<EditorAttribute(Syncfusion.Windows.Forms.Design.EnumFlagsEditor, System.Drawing.Design.UITypeEditor)>
<DescriptionAttribute("Defines which mouse buttons can be used for selecting cells.")>
Public Property SelectCellsMouseButtonsMask As MouseButtons
'Usage
 
Dim instance As GridModelOptions
Dim value As MouseButtons
 
instance.SelectCellsMouseButtonsMask = value
 
value = instance.SelectCellsMouseButtonsMask
[Category("Behavior-Selection")]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[Browsable(true)]
[Editor(Syncfusion.Windows.Forms.Design.EnumFlagsEditor, System.Drawing.Design.UITypeEditor)]
[Description("Defines which mouse buttons can be used for selecting cells.")]
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: 18.1460.0.52

See Also