You can allow the end user to drag-and-drop data from one range of cells to another. You can specify whether the user can select a cell or range of cells and drag and drop them to a new location in the same spreadsheet within the same Spread component. When the mouse button is released and the range of cells is dropped, the DragDropBlock event occurs.
For more information, refer to the AllowDragDrop property in the FpSpread class. For more information on event arguments, refer to DragDropBlock event, DragDropBlockEventArgs, and DragDropBlockCompletedEventArgs.
Allow the drag-and-drop feature by setting the AllowDragDrop property for the FpSpread component.
This example code sets the component to allow the drag-drop feature.
C# |
Copy Code
|
---|---|
fpSpread1.AllowDragDrop = true;
|
VB |
Copy Code
|
---|---|
fpSpread1.AllowDragDrop = True
|
Allow the drag-and-drop feature by setting the AllowDragDrop property of the FpSpread component.
This example code sets the child sheet to allow the drag-drop feature.
C# |
Copy Code
|
---|---|
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
sv.AllowDragDrop = true;
|
VB |
Copy Code
|
---|---|
Dim sv As FarPoint.Win.Spread.SpreadView = fpSpread1.GetRootWorkbook sv.AllowDragDrop = True |
or