| Visual Basic (Declaration) | |
|---|---|
Public Event ColumnDragMoveCompleted() As DragMoveCompletedEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public event DragMoveCompletedEventHandler ColumnDragMoveCompleted() | |
The event handler receives an argument of type DragMoveCompletedEventArgs containing data related to this event. The following DragMoveCompletedEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Count | Gets the number of columns or rows being moved |
| FromIndex | Gets the column or row index of the starting place of the drag. |
| ToIndex | Gets the column or row index of the destination of the drag |
| View | Gets the view in which the columns or row have been dragged. |
This example allows the user to move columns.
| C# | Copy Code |
|---|---|
fpSpread1.AllowColumnMove = true; | |
| Visual Basic | Copy Code |
|---|---|
FpSpread1.AllowColumnMove = True | |
This event is raised by the OnColumnDragMoveCompleted method when the user is finished dragging a column, which can only happen when the AllowColumnMove property is true.
For more details on the individual event arguments, refer to DragMoveCompletedEventArgs members.