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.ClipboardDataPasting Event

Occurs before data is pasted into destination cells.

Namespace: DevExpress.Xpf.Spreadsheet

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

NuGet Package: DevExpress.Wpf.Spreadsheet

#Declaration

public event ClipboardDataPastingEventHandler ClipboardDataPasting

#Event Data

The ClipboardDataPasting event's data class is EventArgs.

#Remarks

This event fires as a notification that the data is about to be pasted into target cells. It occurs first in a sequence of events the Spreadsheet control raises when data is pasted from a cell’s in-place editor or external application (e.g., Microsoft® Excel®). It fires before the SpreadsheetControl.ClipboardDataObtained and SpreadsheetControl.ClipboardDataPasted events. To cancel the paste operation, handle the SpreadsheetControl.ClipboardDataObtained event and set its Cancel parameter to true.

See Also