Back to Devexpress

SpreadsheetControl.AfterDropRange Event

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-13b83e26.md

latest2.4 KB
Original Source

SpreadsheetControl.AfterDropRange Event

Occurs after a user dropped the selected cell range in a new location.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public event AfterDropRangeEventHandler AfterDropRange
vb
Public Event AfterDropRange As AfterDropRangeEventHandler

Event Data

The AfterDropRange event's data class is AfterDropRangeEventArgs. The following properties provide information specific to this event:

PropertyDescription
OperationTypeGets the type of the drag-and-drop operation a user performed over a cell range.
SourceRangeReturns a cell range a user moved or copied to a new location.
TargetRangeReturns a cell range into which data was pasted.

Remarks

Handle this event to perform any actions after a cell range was dropped in a new location. This event allows you to obtain the source and destination ranges, and determine whether a user moved or copied the source range.

To cancel the drag-and-drop operation for a cell range, handle the SpreadsheetControl.BeforeDropRange event and set its Cancel parameter to true.

See Also

BeforeDragRange

BeforeDropRange

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace