Xceed DataGrid for WPF v7.2 Documentation
DragBehavior Property


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridControl Class : DragBehavior Property

Gets or sets a value indicating the expected drag behavior within the datagrid. Default: DragDrop.

The datagrid allows users to select multiple items or cells using Left-Click and then dragging the mouse within the datagrid. This allows range selection to be performed without having to hold the Shift key on the keyboard.

To activate this feature, set the DataGrid's AllowDrag property to true and this DragBehavior property to "Select". The View must be a valid instance or subclass of TableView (ex. TableFlowView, TreeGridflowView).

Syntax
'Declaration
 
Public Property DragBehavior As DataGridDragBehavior
'Usage
 
Dim instance As DataGridControl
Dim value As DataGridDragBehavior
 
instance.DragBehavior = value
 
value = instance.DragBehavior
public DataGridDragBehavior DragBehavior {get; set;}

Property Value

Select - The underlying rows or cells will be selected when dragged. (eg. Excel-like selection)


DragDrop - Allow the selected rows to be dragged to a target host, such as Excel, in order to copy the data directly without performing an explicit copy/paste.

Remarks
In order to be effective, the DataGridControl.AllowDrag property must be set to True.
"Select" mode is only supported by TableView and its subclasses (eg. TableflowView, TreeGridflowView)
Requirements

See Also

Reference

DataGridControl Class
DataGridControl Members