Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetControl.CopiedRangePasted Event

Occurs after the range content has been pasted into target cells.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v24.2.dll

NuGet Package: DevExpress.Wpf.Spreadsheet

#Declaration

public event CopiedRangePastedEventHandler CopiedRangePasted

#Event Data

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

Property Description
SourceRange Gets a cell range from which the data has been copied.
TargetRange Gets a cell range into which the data has been pasted.

#Remarks

Handle the CopiedRangePasted event to perform specific actions each time a user pastes data from a cell range in the current workbook. The event argument’s properties allow you to obtain the copied and destination ranges.

To cancel the paste operation, handle the SpreadsheetControl.CopiedRangePasting event that is raised before a cell range is pasted.

See Also