Back to Devexpress

SpreadsheetControl.ClipboardDataPasting Event

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-4e3b98d6.md

latest1.9 KB
Original Source

SpreadsheetControl.ClipboardDataPasting Event

Occurs before data is pasted into destination cells.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public event ClipboardDataPastingEventHandler ClipboardDataPasting
vb
Public Event ClipboardDataPasting As ClipboardDataPastingEventHandler

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

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace