Syncfusion.Grid.Windows
Example 


Syncfusion.Windows.Forms.Grid Namespace > GridControl Class : DragSelectedCellsMouseButtonsMask Property

DragSelectedCellsMouseButtonsMask Property (GridControl)

See GridModelOptions.SelectCellsMouseButtonsMask in the GridModel class for information.
Syntax
'Declaration
 
<EditorAttribute(Syncfusion.Windows.Forms.Design.EnumFlagsEditor, System.Drawing.Design.UITypeEditor)>
<DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
<DescriptionAttribute("Defines which mouse buttons can be used for dragging selected rows or columns.")>
<CategoryAttribute("Grid")>
<BrowsableAttribute(True)>
Public Property DragSelectedCellsMouseButtonsMask As MouseButtons
'Usage
 
Dim instance As GridControl
Dim value As MouseButtons
 
instance.DragSelectedCellsMouseButtonsMask = value
 
value = instance.DragSelectedCellsMouseButtonsMask
[Editor(Syncfusion.Windows.Forms.Design.EnumFlagsEditor, System.Drawing.Design.UITypeEditor)]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[Description("Defines which mouse buttons can be used for dragging selected rows or columns.")]
[Category("Grid")]
[Browsable(true)]
public MouseButtons DragSelectedCellsMouseButtonsMask {get; set;}
Example
This example shows how to use DragSelectedCellsMouseButtonsMask property.
// Setting the mouse button mask to drag either using Left or Right mouse button.
this.gridControl1.DragSelectedCellsMouseButtonsMask = System.Windows.Forms.MouseButtons.Left | System.Windows.Forms.MouseButtons.Right;
' Setting the mouse button mask to drag either using Left or Right mouse button.
Me.gridControl1.DragSelectedCellsMouseButtonsMask = (System.Windows.Forms.MouseButtons.Left Or System.Windows.Forms.MouseButtons.Right)
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also